The FiveM developer’s field guide
Know the native.
Build the world.
Engine functions, framework docs, and game assets.
One reference. From the first lookup to the last line.
knowledge base
Explore / FiveM
Native reference
- TASKAny
0x0FFB3C758E8C07B9
Doesn't actually return anything. ``` NativeDB Introduced: v2060 ```
0x0FFB3C758E8C07B9 - TASKvoid
0x1F351CF1C6475734
Description not yet documented
0x1F351CF1C6475734 - TASKvoid
0x29682E2CCF21E9B5
``` NativeDB Introduced: v1868 ```
0x29682E2CCF21E9B5 - TASKBOOL
0x3E38E28A1D80DDF6
``` IS_* ```
0x3E38E28A1D80DDF6 - TASKvoid
0x53DDC75BC3AC0A90
Related to [`_CLEAR_VEHICLE_TASKS`](#\_0xDBBC7A2432524127) and requires more research (e.g., \_CLEAR_VEHICLE_SECONDARY_TASKS). ``` CLEAR_* NativeDB Introduced: v1290 ```
0x53DDC75BC3AC0A90 - TASKvoid
0x6100B3CEFD43452E
``` NativeDB Introduced: v2189 ```
0x6100B3CEFD43452E - TASKvoid
0x8423541E8B3A1589
``` NativeDB Introduced: v1493 ```
0x8423541E8B3A1589 - TASKvoid
0x8634CEF2522D987B
``` NativeDB Introduced: v1493 ```
0x8634CEF2522D987B - TASKAny
0x9D252648778160DF
``` NativeDB Introduced: v1868 ```
0x9D252648778160DF - TASKAny
0xAB13A5565480B6D9
``` Used only once in the scripts (fm_mission_controller) like so: TASK::_0xAB13A5565480B6D9(iLocal_3160, "Cutting"); SET_* ```
0xAB13A5565480B6D9 - TASKvoid
0xFA83CA6776038F64
``` REMOVE_* NativeDB Introduced: v1493 ```
0xFA83CA6776038F64 - TASKvoid
ADD_COVER_BLOCKING_AREA
Description not yet documented
0x45C597097DD7CB81 - TASKScrHandle
ADD_COVER_POINT
Description not yet documented
0xD5C12A75C7B9497F - TASKvoid
ADD_PATROL_ROUTE_LINK
connects/links 2 [route nodes](#\_0x8EDF950167586B7C)\ image representing the cyclic example below:\ 
0x23083260DEC3A551 - TASKvoid
ADD_PATROL_ROUTE_NODE
x2,y2 and z2 are the coordinates to which the ped should look at
0x8EDF950167586B7C - TASKvoid
ADD_VEHICLE_SUBTASK_ATTACK_COORD
``` x, y, z: offset in world coords from some entity. ```
0x5CF0D8F9BBA0DD75 - TASKvoid
ADD_VEHICLE_SUBTASK_ATTACK_PED
Description not yet documented
0x85F462BADC7DA47F - TASKBOOL
ASSISTED_MOVEMENT_IS_ROUTE_LOADED
Description not yet documented
0x60F9A4393A21F741 - TASKvoid
ASSISTED_MOVEMENT_OVERRIDE_LOAD_DISTANCE_THIS_FRAME
Description not yet documented
0x13945951E16EF912 - TASKvoid
ASSISTED_MOVEMENT_REMOVE_ROUTE
Description not yet documented
0x3548536485DD792B - TASKvoid
ASSISTED_MOVEMENT_REQUEST_ROUTE
``` Routes: "1_FIBStairs", "2_FIBStairs", "3_FIBStairs", "4_FIBStairs", "5_FIBStairs", "5_TowardsFire", "6a_FIBStairs", "7_FIBStairs", "8_FIBStairs", "Aprtmnt_1", "AssAfterLift", "ATM_1", "coroner2", "coroner_stairs", "f5_jimmy1", "fame1", "family5b", "family5c", "Family5d", "family5d", "FIB_Glass1", "FIB_Glass2", "FIB_Glass3", "finaBroute1A", "finalb1st", "finalB1sta", "finalbround", "finalbroute2", "Hairdresser1", "jan_foyet_ft_door", "Jo_3", "Lemar1", "Lemar2", "mansion_1", "Mansion_1", "pols_1", "pols_2", "pols_3", "pols_4", "pols_5", "pols_6", "pols_7", "pols_8", "Pro_S1", "Pro_S1a", "Pro_S2", "Towards_case", "trev_steps", "tunrs1", "tunrs2", "tunrs3", "Wave01457s" ```
0x817268968605947A - TASKvoid
ASSISTED_MOVEMENT_SET_ROUTE_PROPERTIES
Description not yet documented
0xD5002D78B7162E1B - TASKvoid
CLEAR_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
Description not yet documented
0xC35B5CDB2824CF69 - TASKvoid
CLEAR_PED_SCRIPT_TASK_IF_RUNNING_THREAT_RESPONSE_NON_TEMP_TASK
``` NativeDB Introduced: v3407 ```
0xF6DC48E56BE1243A - TASKvoid
CLEAR_PED_SECONDARY_TASK
Description not yet documented
0x176CECF6F920D707 - TASKvoid
CLEAR_PED_TASKS
Clear a ped's tasks. Stop animations and other tasks created by scripts.
0xE1EF3C1216AFF2CD - TASKvoid
CLEAR_PED_TASKS_IMMEDIATELY
Immediately stops the pedestrian from whatever it's doing. The difference between this and [CLEAR_PED_TASKS](#\_0xE1EF3C1216AFF2CD) is that this one teleports the ped but does not change the position of the ped.
0xAAA34F8A7CB32098 - TASKvoid
CLEAR_SEQUENCE_TASK
For an example on how to use this please refer to [OPEN_SEQUENCE_TASK](#\_0xE8854A4326B9E12B) #### NOTE If you fail to call [`CLOSE_SEQUENCE_TASK`](#\_0x39E72BC99E6360CB) and `CLEAR_SEQUENCE_TASK` the sequence system can get stuck in a broken state until you restart your client.
0x3841422E9C488D8C - TASKvoid
_CLEAR_VEHICLE_TASKS
``` CLEAR_* NativeDB Introduced: v1290 ```
0xDBBC7A2432524127 - TASKvoid
CLOSE_PATROL_ROUTE
Description not yet documented
0xB043ECA801B8CBC1 - TASKvoid
CLOSE_SEQUENCE_TASK
For an example on how to use this please refer to [OPEN_SEQUENCE_TASK](#\_0xE8854A4326B9E12B) #### NOTE If you fail to call `CLOSE_SEQUENCE_TASK` and [`CLEAR_SEQUENCE_TASK`](#\_0x3841422E9C488D8C) this can get stuck in a broken state until you restart your client.
0x39E72BC99E6360CB - TASKBOOL
CONTROL_MOUNTED_WEAPON
``` Forces the ped to use the mounted weapon. Returns false if task is not possible. ```
0xDCFE42068FE0135A - TASKvoid
CREATE_PATROL_ROUTE
Description not yet documented
0xAF8A443CCC8018DC - TASKvoid
DELETE_PATROL_ROUTE
``` From the b617d scripts: TASK::DELETE_PATROL_ROUTE("miss_merc0"); TASK::DELETE_PATROL_ROUTE("miss_merc1"); TASK::DELETE_PATROL_ROUTE("miss_merc2"); TASK::DELETE_PATROL_ROUTE("miss_dock"); ```
0x7767DD9D65E91319 - TASKBOOL
DOES_SCENARIO_EXIST_IN_AREA
Description not yet documented
0x5A59271FFADD33C1 - TASKBOOL
DOES_SCENARIO_GROUP_EXIST
``` Occurrences in the b617d scripts: "ARMY_GUARD", "ARMY_HELI", "Cinema_Downtown", "Cinema_Morningwood", "Cinema_Textile", "City_Banks", "Countryside_Banks", "DEALERSHIP", "GRAPESEED_PLANES", "KORTZ_SECURITY", "LOST_BIKERS", "LSA_Planes", "LSA_Planes", "MP_POLICE", "Observatory_Bikers", "POLICE_POUND1", "POLICE_POUND2", "POLICE_POUND3", "POLICE_POUND4", "POLICE_POUND5" "QUARRY", "SANDY_PLANES", "SCRAP_SECURITY", "SEW_MACHINE", "SOLOMON_GATE", "Triathlon_1_Start", "Triathlon_2_Start", "Triathlon_3_Start" Sometimes used with IS_SCENARIO_GROUP_ENABLED: if (TASK::DOES_SCENARIO_GROUP_EXIST("Observatory_Bikers") && (!TASK::IS_SCENARIO_GROUP_ENABLED("Observatory_Bikers"))) { else if (TASK::IS_SCENARIO_GROUP_ENABLED("BLIMP")) { ```
0xF9034C136C9E00D3 - TASKBOOL
DOES_SCENARIO_OF_TYPE_EXIST_IN_AREA
Description not yet documented
0x0A9D0C2A3BBC86C1 - TASKBOOL
DOES_SCRIPTED_COVER_POINT_EXIST_AT_COORDS
``` Checks if there is a cover point at position ```
0xA98B8E3C088E5A31 - TASKint
GET_ACTIVE_VEHICLE_MISSION_TYPE
``` https://alloc8or.re/gta5/doc/enums/eVehicleMissionType.txt ```
0x534AEBA6E5ED4CAB - TASKchar*
GET_CLIP_SET_FOR_SCRIPTED_GUN_TASK
Description not yet documented
0x3A8CADC7D37AACC5
A living reference. Documentation coverage varies by native and source.