hello guys if anyone want use this script with Ravage mod this the how you can use currency Ravage with VSS script
this code by @7erra tested and its working
fn_VASShandler.sqf
/*
Author: 7erra <https://forums.bohemia.net/profile/1139559-7erra/>
Description:
VASS calls this function when certain events happen. Add your own code to change behaviour.
(Similar to BIS_fnc_callScriptedEventHandler)
Parameter(s):
0: STRING - Mode in which the functions is called
1: ARRAY - Passed arguments
Returns:
See sub functions
*/
params ["_mode",["_this",[]]];
switch _mode do {
case "getMoney":{
/*
Description:
VASS wants to know how much money the unit has
Parameter(s):
0: OBJECT - Unit whose money is requested
Has to return:
NUMBER - Unit's money
*/
params ["_unit"];
{_x == "rvg_money"} count (magazines player)
};
case "setMoney":{
/*
Description:
VASS changes the amount of money the player has
Parameter(s):
0: OBJECT - Unit whose money will be changed
1: NUMBER - Amount of money changed (can be positive or negative)
Has to return:
Nothing
*/
params ["_unit", "_change"];
if (_change < 0) then {
for "_i" from 1 to (abs _change) do {
player removeItem "rvg_money";
};
} else {
for "_i" from 1 to _change do {
player addItem "rvg_money";
};
};
};
};