24.06.2016, 04:33
Hello! We can create an array of prices for all tuning details, so we can put a check at OnVehicleMod, like:
Where can I find GetComponentPrice function with singleplayer prices?
PHP Code:
if(GetPlayerInterior(playerid) == 0) return 0;
if(!IsValidComponent(componentid) return 0;
if(GetPlayerMoney(playerid) < GetComponentPrice(componentid)) return 0;