GET_RESOURCE_COMMANDS
Returns all commands registered by the specified resource. The data returned adheres to the following layout: ``` [ { "name": "cmdlist", "resource": "example_resource", "arity" = -1, }, { "name": "command1" "resource": "example_resource2", "arity" = -1, } ] ```
CFX
Signature
lua
GetResourceCommands(resource)
-- returns objectParameters
| Name | Type | Description |
|---|---|---|
| char* | — |
Usage
lua
GetResourceCommands(resource)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
