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},
|
|
|
|
args = { 'Sydämesi petti' }
|
|
|
|
})
|
|
|
|
|
|
|
|
end, false)
|
|
|
|
|