| Property | Value |
|---|---|
| Native Name | EXECUTE_COMMAND |
| Hash | 0x561C060B |
| Return Type | void |
| API Set | shared |
| Parameters | commandString (char*) |
Description: 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.
Examples
Citizen.CreateThread(function()
-- stop the server after 1 minute
Citizen.Wait(60000)
ExecuteCommand("quit Shortlived")
end)