Was digging through the files, decided to share some values, etc. Keep in mind some of this could be a tad out-dated due to my mission file being about a month old.
Weed
Code:
WaterArray = ["WARNING: The leaves are fading!","WARNING: The dirt looks too dry!","WARNING: The plant is wiltering!"]; //When to water
PruneArray = ["WARNING: Has too many leaves covering the buds!","WARNING: Looks overgrown!"]; //When to prune
CoolArray2 = ["WARNING: Is getting brown spots on the leaves!","WARNING: Is drying out from the heat!"]; //When to cool
HeatArray2 = ["WARNING: There is too much moisture!"]; //When to heat
TurnoverArray = ["WARNING: The soil needs turning!"]; //When to turn
Weed: "CG_WeedBag4","CG_WeedBag3","CG_WeedBag2","CG_WeedBag1"
Heroin: "CG_Heroin"
Cocaine: "CG_cocaine"
Meth: "CG_MethBag100","CG_MethBag90","CG_MethBag80","CG_MethBag70","CG_MethBag60","CG_MethBag50"
Growing Pot: "NP_GrowingPlot"
Oil/Ores
Code:
Oil: "CG_OilBarrel"
Copper: "np_copperore1"
Iron: "np_ironore1"
Silver: "np_sivlerore1"
Fishing?
Code:
_rareFish = ["Fish_Mackerel_7", "Fish_Tuna_7", "Fish_Trout_Rare", "Fish_Shark_Rare"];
_oreArray = ["Fish_Tuna_1","Fish_Tuna_2","Fish_Tuna_3","Fish_Tuna_4","Fish_Tuna_5","Fish_Tuna_6","Fish_Mackerel_1","Fish_Mackerel_2","Fish_Mackerel_3","Fish_Mackerel_4","Fish_Mackerel_5","Fish_Mackerel_6"];
_barArray = ["np_fishmeat"];
_farmingVehicles = ["POP_Speed_yatch","vvv_NewYacht"];
Random Items/Snippets
Code:
[] spawn client_fnc_plantweed; // Plants weed remotely.
[] spawn client_fnc_usedrugtable; // Plants meth table remotely.
[_unit,_source] spawn client_fnc_tazed; //Adds taze based on source being(person who fired) and unit who is being acted upon. I think :P
Cop Stuff
Code:
Spikes: "CG_Spikes_Collapsed"
Baton: "cg_baton"
Player Health/Drinks
Code:
["remove","unhealthiness",1] call client_fnc_sustain; ["add","drink",100] call client_fnc_sustain; //Removes unhealthiness and Adds Water
["remove","unhealthiness",1] call client_fnc_sustain; ["add","food",100] call client_fnc_sustain; //Removes unhealthiness and Adds food
[player,10] spawn drug_beer_effects; client_drunk = client_drunk + 2; //Creates drug effects
Cash/Bank values
Code:
[_amount] call Client_fnc_addCash;
[_amount] call Client_fnc_removeCash;
[_amount] call Client_fnc_removeBank;
[_amount] call Client_fnc_addBank;
["Remove",_amount] remoteexec ["server_fnc_updateMafiaBank",2];
["Add",_amount] remoteexec ["server_fnc_updateMafiaBank",2];
[_amount] remoteExec ["Client_fnc_addBank",_player]; // Sends it to another player it seems. Client_fnc_addbank can probably be replaced with the above code.
_cash = player getVariable "wallet";
_bank = player getVariable "atm";