# Commands

# Introduction

QBCore provides a variety of commands to interact with the server. These commands allow you to manage player data, jobs, vehicles, inventory, and more. Below is a comprehensive list of available QBCore commands, categorized for easier reference.


# General Commands

# /help

Displays a list of available commands and their descriptions.

Usage:

/help

# /me

Displays an action above the player's head.

Usage:

/me [text]

Example:

/me is checking the surroundings.

# /ooc

Sends an out-of-character message to all players.

Usage:

/ooc [message]

Example:

/ooc Server will restart in 5 minutes.

# Job Commands

# /setjob

Assigns a job to a player.

Usage:

/setjob [player_id] [job_name] [job_grade]

Example:

/setjob 2 mechanic 1 -- Assigns the mechanic job at grade 1 to player with ID 2.

# /onduty

Toggles the player's duty status.

Usage:

/onduty

# /job

Displays information about the player's current job.

Usage:

/job

# Money Commands

# /setmoney

Sets the player's money.

Usage:

/setmoney [player_id] [amount] [type]

Example:

/setmoney 3 1000 cash -- Sets player ID 3's cash to $1000.

# /givecash

Transfers cash to another player.

Usage:

/givecash [player_id] [amount]

# /addmoney

Adds money to a player's account.

Usage:

/addmoney [player_id] [amount] [type]

# /removemoney

Removes money from a player's account.

Usage:

/removemoney [player_id] [amount] [type]

# Inventory Commands

# /giveitem

Gives an item to a player.

Usage:

/giveitem [player_id] [item_name] [amount]

Example:

/giveitem 4 repairkit 2 -- Gives player ID 4 two repair kits.

# /clearinventory

Clears the inventory of a player.

Usage:

/clearinventory [player_id]

# /removeitem

Removes an item from a player's inventory.

Usage:

/removeitem [player_id] [item_name] [amount]

# Player Management Commands

# /kick

Kicks a player from the server.

Usage:

/kick [player_id] [reason]

# /ban

Bans a player from the server.

Usage:

/ban [player_id] [reason] [duration]

# /unban

Unbans a previously banned player.

Usage:

/unban [player_id]

# /revive

Revives a player.

Usage:

/revive [player_id]

# /heal

Fully restores a player's health.

Usage:

/heal [player_id]

# Vehicle Commands

# /dv

Deletes the nearest vehicle.

Usage:

/dv

# /car

Spawns a vehicle.

Usage:

/car [vehicle_model]

# /fix

Repairs the nearest vehicle.

Usage:

/fix

# Debugging and Developer Commands

# /debug

Enables or disables debug mode.

Usage:

/debug

# /resmon

Displays the resource monitor to track resource performance.

Usage:

/resmon 1

# /restart

Restarts a specific resource.

Usage:

/restart [resource_name]

# /ensure

Ensures a specific resource is started.

Usage:

/ensure [resource_name]

# /refresh

Refreshes the list of available resources.

Usage:

/refresh

# Admin Commands

# /tp

Teleports to specific coordinates or to another player.

Usage:

/tp [x] [y] [z]

Example:

/tp 200.0 300.0 40.0 -- Teleports to specified coordinates.

# /bring

Brings a player to your location.

Usage:

/bring [player_id]

# /goto

Teleports you to a player's location.

Usage:

/goto [player_id]

# /setweather

Changes the weather in the game.

Usage:

/setweather [weather_type]

Example:

/setweather clear -- Sets the weather to clear skies.

# /settime

Changes the in-game time.

Usage:

/settime [hour] [minute]

Example:

/settime 12 30 -- Sets the time to 12:30.

# Conclusion

This comprehensive list of QBCore commands is essential for managing your FiveM server and enhancing player interactions. Use these commands effectively to maintain and customize your server.

For more details and updates, visit the QBCore Documentation.


# QBCore Store Since 2020

Contact: Discord
Website: Website
YouTube: YouTube