Fivem Commands Lua Example

[Solved] Fivem Commands Lua Example | Shell - Code Explorer | yomemimo.com
Question : fivem commands lua example

Answered by : linus-x7mkx96y522g

RegisterCommand('car', function(source, args) -- TODO: make a vehicle! fun! TriggerEvent('chat:addMessage', { args = { 'I wish I could spawn this ' .. (args[1] or 'adder') .. ' but my owner was too lazy. :(' } })
end, false)

Source : https://docs.fivem.net/docs/scripting-manual/introduction/creating-your-first-script/ | Last Update : Sun, 22 Aug 21

Question : fivem commands example lua

Answered by : linus-x7mkx96y522g

Citizen.CreateThread(function() TriggerEvent('chat:addSuggestion', '/test', 'Testing this new command.') end)
RegisterCommand("test", function(source, args, rawCommandString) -- Colors can be found here: https://zap-hosting.com/guides/docs/en/fivem_servername_color/ TriggerEvent('chatMessage', "^2TEST", { 255, 0, 62 }, "Testing this new command.")
end, false)

Source : | Last Update : Sun, 22 Aug 21

Answers related to fivem commands lua example

Code Explorer Popular Question For Shell