FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
TASK_PLANE_LAND
(Ped pilot, Vehicle plane, float runwayStartX, float runwayStartY, float runwayStartZ, float runwayEndX, float runwayEndY, float runwayEndZ)
TASK_PLANE_MISSION
(Ped pilot, Vehicle aircraft, Vehicle targetVehicle, Ped targetPed, float destinationX, float destinationY, float destinationZ, int missionFlag, float angularDrag, float unk, float targetHeading, float maxZ, float minZ)
TASK_PLANE_TAXI
(Ped pilot, Vehicle aircraft, float xPos, float yPos, float zPos, float fCruiseSpeed, float fTargetReachedDist)
TASK_PLANT_BOMB
(Ped ped, float x, float y, float z, float heading)
TASK_PLAY_ANIM
(Ped ped, char* animDictionary, char* animationName, float blendInSpeed, float blendOutSpeed, int duration, int flag, float playbackRate, BOOL lockX, BOOL lockY, BOOL lockZ)
TASK_PLAY_ANIM_ADVANCED
(Ped ped, char* animDict, char* animName, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, float animEnterSpeed, float animExitSpeed, int duration, Any flag, float animTime, Any p14, Any p15)
TASK_PLAY_PHONE_GESTURE_ANIMATION
(Ped ped, char* animDict, char* animation, char* boneMaskType, float p4, float p5, BOOL p6, BOOL p7)
TASK_PUT_PED_DIRECTLY_INTO_COVER
(Ped ped, float x, float y, float z, Any timeout, BOOL p5, float p6, BOOL p7, BOOL p8, Any p9, BOOL p10)
TASK_PUT_PED_DIRECTLY_INTO_MELEE
(Ped ped, Ped meleeTarget, float p2, float p3, float p4, BOOL p5)
_TASK_RAPPEL_DOWN_WALL
(Ped ped, float x1, float y1, float z1, float x2, float y2, float z2, float minZ, int ropeId, char* clipset, Any p10)
TASK_RAPPEL_FROM_HELI
(Ped ped, float unused)
TASK_REACT_AND_FLEE_PED
(Ped ped, Ped fleeTarget)
TASK_RELOAD_WEAPON
(Ped ped, BOOL unused)
TASK_SCRIPTED_ANIMATION
(Ped ped, Any* p1, Any* p2, Any* p3, float p4, float p5)
TASK_SEEK_COVER_FROM_PED
(Ped ped, Ped target, int duration, BOOL p3)
TASK_SEEK_COVER_FROM_POS
(Ped ped, float x, float y, float z, int duration, BOOL p5)
TASK_SEEK_COVER_TO_COORDS
(Ped ped, float x1, float y1, float z1, float x2, float y2, float z2, Any p7, BOOL p8)
TASK_SEEK_COVER_TO_COVER_POINT
(Any p0, Any p1, float p2, float p3, float p4, Any p5, BOOL p6)
TASK_SET_BLOCKING_OF_NON_TEMPORARY_EVENTS
(Ped ped, BOOL toggle)
TASK_SET_DECISION_MAKER
(Ped ped, Hash p1)
TASK_SET_SPHERE_DEFENSIVE_AREA
(Any p0, float p1, float p2, float p3, float p4)
TASK_SHOCKING_EVENT_REACT
(Ped ped, int eventHandle)
TASK_SHOOT_AT_COORD
(Ped ped, float x, float y, float z, int duration, Hash firingPattern)
TASK_SHOOT_AT_ENTITY
(Entity entity, Entity target, int duration, Hash firingPattern)
TASK_SHUFFLE_TO_NEXT_VEHICLE_SEAT
(Ped ped, Vehicle vehicle)
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)