Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- issue:
- local ped = createPed(1, 0, 0, 0)
- if isElement(ped) then
- setElementHealth(ped, 50) -- set its health to 50
- setTimer(
- function (ped)
- outputChatBox(getElementHealth(ped)) -- this will return 100
- end,
- 10000, 1, ped)
- end
- --temp solution:
- local ped = createPed(1, 0, 0, 0)
- if isElement(ped) then
- setTimer(
- function (ped)
- setElementHealth(ped, 50) -- set its health to 50
- end,
- 1000, 1, ped)
- setTimer(
- function (ped)
- outputChatBox(getElementHealth(ped)) -- this will return 50
- end,
- 10000, 1, ped)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement