server/addons/init/functions/fnc_handleServerState.sqf
Jacob Schmidt 48e3e15f71
Some checks failed
Build / Build (push) Failing after 51s
Initial Repo Setup
2025-01-01 14:30:34 -06:00

20 lines
512 B
Plaintext

#include "..\script_component.hpp"
params ["_condition"];
switch (_condition) do {
case "save": {
private _data = [
"CompanyState",
"funds", [companyFunds],
"rating", [companyRating],
"operations", [companyGenerals],
"garage_unlocks", [companyGarageUnlocks]
];
["hsetidbulk", "", "", -1, _data, "", false] call dragonfly_db_fnc_addTask;
};
case "load": {
["hgetallid", "CompanyState", "", -1, [], "forge_server_init_fnc_handleServerStateLoad", false] call dragonfly_db_fnc_addTask;
};
};