Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.78 KB | None | 0 0
  1. {
  2.     private _fnc_scriptNameParent = if (isNil '_fnc_scriptName') then {'RLSG_fnc_dropCash'} else {_fnc_scriptName};
  3.     private _fnc_scriptName = 'RLSG_fnc_dropCash';
  4.     scriptName _fnc_scriptName;
  5.  
  6. #line 1 "core\functions\fn_dropCash.sqf [RLSG_fnc_dropCash]"
  7. params[["_amount",-1,[-1]],["_pos",[],[[]]]];if(count _pos!=3) exitWith{};if(_amount isEqualTo-1) exitWith{};if(_amount<1) exitWith{};private _moneyStack=createSimpleObject["Land_money_F",[0,0,0]];_moneyStack setPosATL _pos;_moneyStack setVariable["RepublicLife_DroppedItem",["RepublicLife_DroppedMoney",_amount],true];
  8. _moneyStack setVariable["RepublicLife_ItemOwner",[profileName,getPlayerUID player],true];[_moneyStack]remoteExecCall["RLSG_fnc_simDisable",0];[_amount,true]call RepublicLife_AC_Cash;[0]call RLSG_fnc_updatePartial;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement