❗Commands
A list of all the commands and their respective resource
QBCore.Commands.Add
This function allows you to register a command with a specified user level
QBCore.Commands.Add(name, help, arguments, argsrequired, callback, permission, ...)
name:
string
help:
string
arguments:
table
argsrequired:
boolean
callback:
function
permission:
string
Example:
local arguments = {
{ name = 'arg 1', help = 'This will give helpful hints on what arg is for' },
{ name = 'arg 2', help = 'This will give helpful hints on what arg is for' }
}
local argsRequired = true -- if this is true the command won't work without args entered
QBCore.Commands.Add('test', 'Trigger a test command', arguments, argsRequired, function(source)
print('Congrats, you made a test command that anyone can trigger!')
end, 'user')
QBCore.Commands.Refresh
This function will trigger a refresh of all commands suggestions. This is helpful for when setting permissions to a higher level, it will refresh the suggestions list so the player can now see the new commands they have access to!
QBCore.Commands.Refresh(source)
source:
number
Example:
RegisterCommand('refreshCommands', function()
QBCore.Commands.Refresh(source)
print('You have refreshed all command suggestions for yourself')
end, true)
AdminMenu
Core
Ambulancejob
Police
Banking
/givecash - gives the player an amount of cash
Cityhall
/drivinglicense - give player a license after a driving test
Binds
/binds - allows you to set customs key binds
Diving
/divingsuit - uses the diving suit
Doorlock
/newdoor - opens UI for creating new door
/doordebug - debug for doorlocks
Drugs
/newdealer - creats a new dealer at a location (front door of house)
/deletedealer - deales a saved dealer
/dealers - show list if info on dealers
/dealergoto - teleport to dealer
Garbage
/cleargarbroutes - removes garbo routes for user
Hotdogjob
/removestand - removes a hotdog stand
Housing
/decorate - opens decorate menu/options
/createhouse - creates a house at location
/addgarage - adds garage at location
/ring - rings a doorbell at location
Hud
/cash - displays current cash amount
/bank - displays current bank amount
/dev - displays a dev icon
Inventory
/resetinv - resets inventory on stash/trunk/glovebox
/rob - robs closest player
/giveitem - gives item to a player
/randomitems - gives random items to a player
Lapraces
/cancelrace - cancel the current race
/togglesetup - turn on or off race setup
Mechanicjob
/setvehiclestatus - sets the vehicles status
/setmechanic - give someone the mechanic job
/firemechanic - fire a mechanic
Multicharacter
/logout - logout of current character
/closeNUI - closes the multicharacter NUI
Newsjob
/newscam - gives player a a news camra
/newsmic - gives player a news microphone
/newsbmic - gives player a boom microphone
Phone
/setmetadata - sets the players metadata
/bill - sends a bill* /invoice to player
RadialMenu
/getintrunk - Gets in the trunk
/putintrunk - puts a player in the trunk (kidnap)
Smallresources
/resetarmor - resets the armor
/resetparachute - resets a parachute
/testwebhook - test to see if webhook for logs is working
/id - displays your id
Streetrace
/createrace - starts a street race
/stoprace - stops current street race
/quitrace - quits the current street race
/startrace - starts the current street race
Towjob
/npc - Toggles a tow job from a npc
/tow - puts closes vehicle on flatbed (must be behind truck)
Traphouse
/multikeys - gives keys to another player
Vehiclefailure
/fix - fixes current vehicle
Vehiclekeys
/engine - toggles engine on/off
/givekeys - gives keys to a player
/addkeys - adds keys to that player
/removekeys - removes keys from player
Vehicleshop
/transferVehicle - gift or sell your vehicle to someone
Weapons
/repairweapon - repairs a weapon
Last updated
Was this helpful?