buddem/die/die.lua

13 lines
248 B
Lua
Raw Normal View History

2019-10-24 22:32:40 +03:00
RegisterCommand('die', function(source, args)
2019-10-24 23:49:22 +03:00
-- Healt to zero
2019-10-24 22:32:40 +03:00
SetEntityHealth(PlayerPedId(), 0)
2019-10-24 23:49:22 +03:00
-- Chat about heart failure
2019-10-24 22:32:40 +03:00
TriggerEvent('chat:addMessage', {
color = {255,0,0},
2019-10-24 23:56:49 +03:00
args = { 'Sydämesi petti' }
})
2019-10-24 22:32:40 +03:00
end, false)