FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
_CREATE_AIR_DEFENSE_SPHERE
(float x, float y, float z, float radius, float p4, float p5, float p6, Hash weaponHash)
CREATE_WEAPON_OBJECT
(Hash weaponHash, int ammoCount, float x, float y, float z, BOOL bCreateDefaultComponents, float scale, int customModelHash)
_DOES_AIR_DEFENSE_ZONE_EXIST
(int zoneId)
DOES_WEAPON_TAKE_WEAPON_COMPONENT
(Hash weaponHash, Hash componentHash)
ENABLE_LASER_SIGHT_RENDERING
(BOOL toggle)
EXPLODE_PROJECTILES
(Ped ped, Hash weaponHash, BOOL p2)
_FIRE_AIR_DEFENSE_WEAPON
(int zoneId, float x, float y, float z)
GET_AMMO_IN_CLIP
(Ped ped, Hash weaponHash, int* ammo)
GET_AMMO_IN_PED_WEAPON
(Ped ped, Hash weaponhash)
GET_BEST_PED_WEAPON
(Ped ped, BOOL ignoreAmmoCount)
GET_CURRENT_PED_VEHICLE_WEAPON
(Ped ped, Hash* weaponHash)
GET_CURRENT_PED_WEAPON
(Ped ped, Hash* weaponHash, BOOL p2)
GET_CURRENT_PED_WEAPON_ENTITY_INDEX
(Ped ped)
GET_IS_PED_GADGET_EQUIPPED
(Ped ped, Hash gadgetHash)
GET_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON
(Ped ped)
GET_MAX_AMMO
(Ped ped, Hash weaponHash, int* ammo)
_GET_MAX_AMMO_BY_TYPE
(Ped ped, Hash ammoType, int* ammo)
GET_MAX_AMMO_IN_CLIP
(Ped ped, Hash weaponHash, BOOL p2)
GET_MAX_RANGE_OF_CURRENT_PED_WEAPON
(Ped ped)
GET_PED_AMMO_BY_TYPE
(Ped ped, Hash ammoType)
GET_PED_AMMO_TYPE_FROM_WEAPON
(Ped ped, Hash weaponHash)
_GET_PED_AMMO_TYPE_FROM_WEAPON_2
(Ped ped, Hash weaponHash)
GET_PED_LAST_WEAPON_IMPACT_COORD
(Ped ped, Vector3* coords)
_GET_PED_WEAPON_LIVERY_COLOR
(Ped ped, Hash weaponHash, Hash camoComponentHash)
GET_PED_WEAPON_TINT_INDEX
(Ped ped, Hash weaponHash)
GET_PED_WEAPONTYPE_IN_SLOT
(Ped ped, Hash weaponSlot)
GET_SELECTED_PED_WEAPON
(Ped ped)
GET_WEAPON_CLIP_SIZE
(Hash weaponHash)
GET_WEAPON_COMPONENT_HUD_STATS
(Hash componentHash, int* outData)
GET_WEAPON_COMPONENT_TYPE_MODEL
(Hash componentHash)
_GET_WEAPON_COMPONENT_VARIANT_EXTRA_COMPONENT_COUNT
(Hash componentHash)
_GET_WEAPON_COMPONENT_VARIANT_EXTRA_COMPONENT_MODEL
(Hash componentHash, int extraComponentIndex)
GET_WEAPON_DAMAGE
(Hash weaponHash, Hash componentHash)
GET_WEAPON_DAMAGE_TYPE
(Hash weaponHash)
GET_WEAPON_HUD_STATS
(Hash weaponHash, Any* outData)