Guest User

Untitled

a guest
Oct 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1.  
  2. function carDamage ( source )
  3.     if ( hasObjectPermissionTo ( source, "function.carDamage", true )) then
  4.         setVehicleDamageProof ( getPedOccupiedVehicle ( getPlayerFromName ( source ) ), true )
  5.     else
  6.         outputChatBox ( "DONOTHING.", source )
  7.     end
  8. end
  9. addCommandHandler ( "nocardamage", carDamage )
Add Comment
Please, Sign In to add comment