I want a script that do that:
If I types /lock the game do a /me locks his car.
If I types /motor the game do a /me engine on/off.
Just a simple script I think.
I want a script that do that:
If I types /lock the game do a /me locks his car.
If I types /motor the game do a /me engine on/off.
Just a simple script I think.
This is not a release dude…
Okey, I edited. So see it now.
This is also not a FiveM feature request! Put [Request] in your title and take away feature request
edit it in your current scripts and use something like the below:
AddEventHandler('chatMessage', function(source, msg)
TriggerClientEvent('chatMessage', -1, "ME | " Does action")
end)
Or for the persons name to appear:
AddEventHandler('chatMessage', function(source, name, msg)
TriggerClientEvent('chatMessage', -1, " " .. name, { 30, 141, 50 }, "Me : ")
end)
This is not perfect but its a start.
Okey, I will try it.
Why don’t u just find the script that locks cars and make it where it automatically posts in chat “playername” locks his car < whenever you lock a car…
will save you a lot of typing ^^
RegisterCommand('lock', function()
TriggerClientEvent('chatMessage', -1, 'ME | Locks car')
end)
thanks! ( 20 character )