call_native
Execute GTA V native functions by name to manipulate the game world, such as spawning vehicles or changing weather. Refuses unknown hashes to prevent crashes.
Instructions
Call a GTA V native function BY NAME - the primary way to do ANYTHING in-game.
Resolves the name to its verified canonical hash and refuses unknown/guessed hashes (a wrong hash crashes the game). ~6700 natives available; works on Legacy + Enhanced. Discover names with search_natives(); check args with native_info().
Args: name: Native name, e.g. "CREATE_VEHICLE", "SET_ENTITY_INVINCIBLE", "ADD_EXPLOSION", "SET_PED_MOVE_RATE_OVERRIDE". args: Arguments in order (see native_info for order/types). Entity/ped/vehicle args are handles (ints). Get the player ped via PLAYER_PED_ID first. return_type: Optional override ("int","float","bool","string","void"); omit to use the native's declared return type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| args | No | ||
| return_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |