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 :: function return lua 
Lua :: lua script 
Lua :: awesome wm tasklist disabled icon 
Lua :: lua string length 
Lua :: how to end if statement roblox 
Lua :: how do i do a wait lin lua replit 
Lua :: lua hash table length 
Lua :: how to make variables in lua 
Lua :: check if string is in string[] c# 
Lua :: can you throw an error forceable in lua 
Lua :: lua scp 914 card script 
Lua :: lua how to print NUMBER 
Lua :: how do i use the love errors module lua assist 
Lua :: roblox lua exploiting rconsole 
Matlab :: find duplicates in matlab arrauy 
Matlab :: log matlab 
Matlab :: odd even in array matlab 
Basic :: basic latex document 
Basic :: split to arraylist vb.net 
Elixir :: elixir string to date 
Elixir :: ** (Ecto.ConstraintError) constraint error when attempting to insert struct: * id_fkey (foreign_key_constraint) 
Elixir :: elixir pipeline 
Scala :: scala pattern matching 
Actionscript :: from sys import stdin 
Excel :: google sheets return multiple columns with vlookup 
Perl :: perl substitution 
Pascal :: store input in variable in pascal 
Powershell :: debloat window 10 
Gdscript :: godot print enum name 
Assembly :: latex image textwidth 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =