mike19951208

Untitled

Sep 15th, 2020 (edited)
802
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local bullet = items["bullet"]
  2.  
  3. if bullet ~= nil then
  4.     TriggerServerEvent("damagePlayer", targetPlayer, bullet["damage"])
  5.  
  6.     if bullet.special == "fire" then
  7.         TriggerServerEvent("SetPlayerOnFire", targetPlayer)
  8.     end
  9.  
  10.     bullet.number = bullet.number - 1
  11.     if bullet.number == 0 then
  12.         items["bullet"] = nil
  13.     end
  14. end
RAW Paste Data