Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cooldown = 0
- local ped = GetPlayerPedId()
- RegisterNetEvent('useweed')
- AddEventHandler('useweed', function()
- if cooldown ~= 0 then
- SetEntityHealth(ped, 0)
- ShowNotification('u ded)
- elseif
- if GetEntityHealth(ped) == GetEntityMaxHealth(ped) then
- SetEntityHealth(ped, 0)
- ShowNotification('u ded')
- else
- SetEntityHealth(ped, GetEntityMaxHealth(ped))
- cooldown = 30
- while cooldown ~= 0 do
- cooldown = cooldown - 1
- Wait(1000)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement