Search
 
SCRIPT & CODE EXAMPLE
 

LUA

fivem commands lua example

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)

Comment

fivem commands example lua

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)

Comment

PREVIOUS NEXT
Code Example
Lua :: lua calculator 
Lua :: convert string to lowercase lua 
Lua :: roblox studio rain 
Lua :: how to stop code roblo 
Lua :: How to split license id fivem 
Lua :: table in lua 
Lua :: roblox rotate head with camera 
Lua :: pcall lua 
Lua :: subsgtitute string R 
Lua :: pico8 draw dot 
Lua :: insert item array pico8 
Lua :: Lua dynamic variable name 
Lua :: enable http service roblox 
Matlab :: matlab read from txt file 
Matlab :: matlab number to string 
Matlab :: how to get the highest power of polynomial matlab 
Matlab :: how to set for with 2 increases in matlab 
Basic :: how to close form in vb.net 
Basic :: split to list vb.net 
Elixir :: elixir catch 
Elixir :: elixir get error message 
Scala :: scala hello world 
Scala :: scala jrtpath 
Actionscript :: Application insights powershell 
Excel :: excel get number of column 
Perl :: perl sprintf YYYYMMDD sample 
Pascal :: pascal wait for key 
Powershell :: call function powershell 
Clojure :: clojure def 
Assembly :: sqlalchemy filter date today 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =