AddEventHandler('chatMessage', function(player, playerName, message)
local message = string.lower(message)
if message:sub(1) == '/startfire' then
TriggerClientEvent('StartFire', player)
CancelEvent()
end
end)
AddEventHandler('chatMessage', function(player, playerName, message)
local message = string.lower(message)
if message:sub(1) == '/stopfires' then
TriggerClientEvent('StopFires', player)
CancelEvent()
end
end)
AddEventHandler('chatMessage', function(player, playerName, message)
local message = string.lower(message)
if message:sub(1) == '/stopfires' then
TriggerClientEvent('StopFires', player)
CancelEvent()
end
end)
StartScriptFire should return an int with the handle ID for that fire. Save the handle when you start it, then stop it later using void REMOVE_SCRIPT_FIRE(int fireHandle);
return an int? like what i don’t have much of the fire script part of knowledge
and for the void fact does it work by just adding in the void part or is there a full code part?
Also how would i add the fire commands using the RegisterCommand