FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
TASK_SKY_DIVE
(Ped ped)
TASK_SMART_FLEE_COORD
(Ped ped, float x, float y, float z, float distance, int time, BOOL p6, BOOL p7)
TASK_SMART_FLEE_PED
(Ped ped, Ped fleeTarget, float distance, Any fleeTime, BOOL p4, BOOL p5)
TASK_STAND_GUARD
(Ped ped, float x, float y, float z, float heading, char* scenarioName)
TASK_STAND_STILL
(Ped ped, int time)
TASK_START_SCENARIO_AT_POSITION
(Ped ped, char* scenarioName, float x, float y, float z, float heading, int duration, BOOL sittingScenario, BOOL teleport)
TASK_START_SCENARIO_IN_PLACE
(Ped ped, char* scenarioName, int unkDelay, BOOL playEnterAnim)
TASK_STAY_IN_COVER
(Ped ped)
TASK_STEALTH_KILL
(Ped killer, Ped target, Hash actionType, float p3, Any p4)
TASK_STOP_PHONE_GESTURE_ANIMATION
(Ped ped)
_TASK_SUBMARINE_GOTO_AND_STOP
(Any p0, Vehicle submarine, float x, float y, float z, Any p5)
TASK_SWAP_WEAPON
(Ped ped, BOOL p1)
TASK_SWEEP_AIM_ENTITY
(Ped ped, char* anim, char* p2, char* p3, char* p4, int p5, Vehicle vehicle, float p7, float p8)
TASK_SWEEP_AIM_POSITION
(Any p0, Any* p1, Any* p2, Any* p3, Any* p4, Any p5, float p6, float p7, float p8, float p9, float p10)
TASK_SYNCHRONIZED_SCENE
(Ped ped, int scene, char* animDictionary, char* animationName, float speed, float speedMultiplier, int duration, int flag, float playbackRate, Any p9)
TASK_THROW_PROJECTILE
(Ped ped, float x, float y, float z)
TASK_TOGGLE_DUCK
(BOOL p0, BOOL p1)
TASK_TURN_PED_TO_FACE_COORD
(Ped ped, float x, float y, float z, int duration)
TASK_TURN_PED_TO_FACE_ENTITY
(Ped ped, Entity entity, int duration)
TASK_USE_MOBILE_PHONE
(Ped ped, int p1)
TASK_USE_MOBILE_PHONE_TIMED
(Ped ped, int duration)
TASK_USE_NEAREST_SCENARIO_CHAIN_TO_COORD
(Any p0, float p1, float p2, float p3, float p4, Any p5)
TASK_USE_NEAREST_SCENARIO_CHAIN_TO_COORD_WARP
(Any p0, float p1, float p2, float p3, float p4, Any p5)
TASK_USE_NEAREST_SCENARIO_TO_COORD
(Ped ped, float x, float y, float z, float distance, int duration)
TASK_USE_NEAREST_SCENARIO_TO_COORD_WARP
(Ped ped, float x, float y, float z, float radius, Any p5)
TASK_VEHICLE_AIM_AT_COORD
(Ped ped, float x, float y, float z)
TASK_VEHICLE_AIM_AT_PED
(Ped ped, Ped target)
TASK_VEHICLE_CHASE
(Ped driver, Entity targetEnt)
TASK_VEHICLE_DRIVE_TO_COORD
(Ped ped, Vehicle vehicle, float x, float y, float z, float speed, Any p6, Hash vehicleModel, int drivingMode, float stopRange, float p10)
TASK_VEHICLE_DRIVE_TO_COORD_LONGRANGE
(Ped ped, Vehicle vehicle, float x, float y, float z, float speed, int driveMode, float stopRange)
TASK_VEHICLE_DRIVE_WANDER
(Ped ped, Vehicle vehicle, float speed, int drivingStyle)
TASK_VEHICLE_ESCORT
(Ped ped, Vehicle vehicle, Vehicle targetVehicle, int mode, float speed, int drivingStyle, float minDistance, int p7, float noRoadsDistance)
TASK_VEHICLE_FOLLOW
(Ped driver, Vehicle vehicle, Entity targetEntity, float speed, int drivingStyle, int minDistance)
TASK_VEHICLE_FOLLOW_WAYPOINT_RECORDING
(Ped ped, Vehicle vehicle, char* WPRecording, int p3, int p4, int p5, int p6, float p7, BOOL p8, float p9)
TASK_VEHICLE_GOTO_NAVMESH
(Ped ped, Vehicle vehicle, float x, float y, float z, float speed, int behaviorFlag, float stoppingRange)