RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. EXECUTE_COMMAND

EXECUTE_COMMAND

Depending on your use case you may need to use `add_acl resource.<your_resource_name> command.<command_name> allow` to use this native in your resource.

CFX

Signature

lua
ExecuteCommand(commandString)
-- returns void

Parameters

NameTypeDescription
char*—

Usage

Named call
ExecuteCommand(commandString)
InvokeNative
Citizen.InvokeNative(0x561C060B, commandString)
lua 1
Citizen.CreateThread(function()
  -- stop the server after 1 minute
  Citizen.Wait(60000)
  ExecuteCommand("quit Shortlived")
end)

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details