Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. cl_action.lua --
  2. --Trunk End
  3. -- carbine toggle
  4. function carbine()
  5. local ped = GetPlayerPed(-1)
  6. if HasPedGotWeapon(ped, "Weapon_Carbinerifle", false) then
  7. RemoveWeaponFromPed(ped, "Weapon_Carbinerifle")
  8. else
  9. GiveWeaponToPed(ped, "Weapon_Carbinerifle", 200, false, true)
  10. end
  11. end
  12. -- carbine end
  13.  
  14. -- Toggle Duty Pistol
  15. function pistol()
  16. local ped = GetPlayerPed(-1)
  17. if HasPedGotWeapon(ped, "Weapon_combatpistol", false) then
  18. RemoveWeaponFromPed(ped, "Weapon_combatpistol")
  19. else
  20. GiveWeaponToPed(ped, "Weapon_combatpistol", 200, false, true)
  21. end
  22. end
  23. --pistol end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement