Skip to content

Instantly share code, notes, and snippets.

@IvanMMM
IvanMMM / machine.js
Last active February 16, 2023 09:33
Generated by XState Viz: https://xstate.js.org/viz
const REVIEW_STATUS = {
PENDING: "pending",
PRECHECKED: "prechecked",
QUEUED: "queued",
HOLD: "onHold",
COMPLETED: "completed",
};
const REVIEW_RESULT = {
GOOD: "GREEN",
==Install==
Location ot the files:
1. \client\lockSystem\vehicle_lock.sqf
2. \client\lockSystem\vehicle_unlock.sqf
3. \client\functions\canVehicleLock.sqf
4. \client\functions\canVehicleUnlock.sqf
5. \client\functions\playerActions.sqf
6. \persistence\world\vLoad.sqf
7. \persistence\world\oSave.sqf
8. \globalCompile.sqf
// @file Name: c_savePlayerData.sqf
// @file Author: AgentRev
if (isDedicated) exitWith {};
if (!isNil "savePlayerHandle" && {typeName savePlayerHandle == "SCRIPT"} && {!scriptDone savePlayerHandle}) exitWith {};
if (str(side player) == "LOGIC") exitWith {}; //don't save if player is zeus.
savePlayerHandle = _this spawn
{
if (alive player &&