SkatCh Posted July 20, 2014 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
SkatCh Posted July 20, 2014 Author 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 .
Et-win Posted July 20, 2014 Posted July 20, 2014 If it didn't, then post your script + errors, the standard thing you do....
SkatCh Posted July 20, 2014 Author 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 .
Atton Posted July 20, 2014 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)
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