SkatCh Posted July 20, 2014 Share Posted July 20, 2014 hi guys please how can i make admin they don't need to pay 1000 when they fix there cars here : a part from my script function(id) if getPlayerMoney(source) >= tonumber(1000) then takePlayerMoney ( source, 1000 ) local vehicle = getVehicleByID(id) if isElement(vehicle) then fixVehicle(vehicle) setVehicleEngineState(vehicle, true) if isVehicleDamageProof(vehicle) then setVehicleDamageProof(vehicle, false) end end Link to comment
Et-win Posted July 20, 2014 Share Posted July 20, 2014 isObjectInACLGroup Server-sided is needed. Link to comment
SkatCh Posted July 20, 2014 Author Share Posted July 20, 2014 thx Et-win can please tell me how to add it in my script i try it but didn't work . Link to comment
Et-win Posted July 20, 2014 Share Posted July 20, 2014 If it didn't, then post your script + errors, the standard thing you do.... Link to comment
SkatCh Posted July 20, 2014 Author Share Posted July 20, 2014 men i don't know how to put it my script that's why i asked you can you do it for me please . Link to comment
Et-win Posted July 20, 2014 Share Posted July 20, 2014 Try it by yourself first, then ask. Link to comment
Atton Posted July 20, 2014 Share Posted July 20, 2014 Here is something you can work from. function DMGPROOF (plr) if plr then local car = getPedOccupiedVehicle(plr) if car then setVehicleDamageProof(car,true) else outputChatBox("You are not in a car!",plr) end end end addCommandHandler("DMG", DMGPROOF) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now