FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
SET_PED_PATH_PREFER_TO_AVOID_WATER
(Ped ped, BOOL avoidWater)
SET_PED_WAYPOINT_ROUTE_OFFSET
(Any p0, Any p1, Any p2, Any p3)
SET_SCENARIO_GROUP_ENABLED
(char* scenarioGroup, BOOL p1)
SET_SCENARIO_TYPE_ENABLED
(char* scenarioType, BOOL toggle)
SET_SEQUENCE_TO_REPEAT
(int taskSequenceId, BOOL repeat)
SET_TASK_MOVE_NETWORK_SIGNAL_BOOL
(Ped ped, char* signalName, BOOL value)
SET_TASK_MOVE_NETWORK_SIGNAL_FLOAT
(Ped ped, char* signalName, float value)
_SET_TASK_MOVE_NETWORK_SIGNAL_FLOAT_2
(Ped ped, char* signalName, float value)
SET_TASK_VEHICLE_CHASE_BEHAVIOR_FLAG
(Ped ped, int flag, BOOL set)
SET_TASK_VEHICLE_CHASE_IDEAL_PURSUIT_DISTANCE
(Ped ped, float distance)
STOP_ANIM_PLAYBACK
(Ped ped, int p1, BOOL p2)
STOP_ANIM_TASK
(Ped ped, char* animDictionary, char* animationName, float animExitSpeed)
TASK_ACHIEVE_HEADING
(Ped ped, float heading, int timeout)
_TASK_AGITATED_ACTION
(Ped ped, Ped ped2)
TASK_AIM_GUN_AT_COORD
(Ped ped, float x, float y, float z, int time, BOOL p5, BOOL p6)
TASK_AIM_GUN_AT_ENTITY
(Ped ped, Entity entity, int duration, BOOL p3)
TASK_AIM_GUN_SCRIPTED
(Ped ped, Hash scriptTask, BOOL p2, BOOL p3)
TASK_AIM_GUN_SCRIPTED_WITH_TARGET
(Any p0, Any p1, float p2, float p3, float p4, Any p5, BOOL p6, BOOL p7)
TASK_ARREST_PED
(Ped ped, Ped target)
TASK_BOAT_MISSION
(Ped pedDriver, Vehicle boat, Any p2, Any p3, float x, float y, float z, Any p7, float maxSpeed, int drivingStyle, float p10, Any p11)
TASK_CHAT_TO_PED
(Ped ped, Ped target, Any p2, float p3, float p4, float p5, float p6, float p7)
TASK_CLEAR_DEFENSIVE_AREA
(Any p0)
TASK_CLEAR_LOOK_AT
(Ped ped)
TASK_CLIMB
(Ped ped, BOOL unused)
TASK_CLIMB_LADDER
(Ped ped, int p1)
TASK_COMBAT_HATED_TARGETS_AROUND_PED
(Ped ped, float radius, int p2)
TASK_COMBAT_HATED_TARGETS_AROUND_PED_TIMED
(Any p0, float p1, Any p2, Any p3)
TASK_COMBAT_HATED_TARGETS_IN_AREA
(Ped ped, float x, float y, float z, float radius, Any p5)
TASK_COMBAT_PED
(Ped ped, Ped targetPed, int p2, int p3)
TASK_COMBAT_PED_TIMED
(Any p0, Ped ped, int p2, Any p3)
TASK_COWER
(Ped ped, int duration)
TASK_DRIVE_BY
(Ped driverPed, Ped targetPed, Vehicle targetVehicle, float targetX, float targetY, float targetZ, float distanceToShoot, int pedAccuracy, BOOL p8, Hash firingPattern)
TASK_ENTER_VEHICLE
(Ped ped, Vehicle vehicle, int timeout, int seatIndex, float speed, int flag, Any p6)
TASK_EVERYONE_LEAVE_VEHICLE
(Vehicle vehicle)
TASK_EXIT_COVER
(Any p0, Any p1, float p2, float p3, float p4)