Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. local cooldown = 0
  2. local ped = GetPlayerPedId()
  3.  
  4. RegisterNetEvent('useweed')
  5. AddEventHandler('useweed, function()
  6.   if cooldown ~= 0 then
  7.      SetEntityHealth(ped, 0)
  8.      ShowNotification('u ded)
  9.    elseif
  10.       if GetEntityHealth(ped) == GetEntityMaxHealth(ped) then
  11.          SetEntityHealth(ped, 0)
  12.          ShowNotification('u ded')
  13.       else
  14.          SetEntityHealth(ped, GetEntityMaxHealth(ped))
  15.          cooldown = 30
  16.          while cooldown ~= 30 do
  17.              cooldown = cooldown - 1
  18.              Wait(1000)
  19.          end
  20.       end
  21.   end  
  22. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement