Skip to content

weapon ​

222 native definitions. Call through natives.weapon or natives.WEAPON.
FunctionReturnsParametersNative hash
_0x000FA7A4A8443AF7voidp0: Any
_0x07E1C35F0078C3F9Anyp0: Any, p1: Any
_0x0DE0944ECCB3DF5DBOOLp0: Any
_0x14FF0C2545527F9Bvoidhorse: Ped, weaponHash: Hash, ped: Ped
_0x16D9841A85FA627Evoidped: Ped, toggle: BOOL
_0x183CE355115B6E75voidp0: Any, p1: Any
_0x2387D6E9C6B478AABOOLped: Ped
_0x23BF601A42F329A0Anyp0: Any
_0x2EBF70E1D8C06683voidp0: Any, p1: Any
_0x3799EFCC3C8CD5E1Anyp0: Any
_0x404514D231DB27A0voidp0: Any, p1: Any
_0x431240A58484D5D0voidped: Ped, toggle: BOOL
_0x44C8F4908F1B2622BOOLped: Ped, ammoHash: Hash
_0x457B16951AD77C1Bvoidp0: Any
_0x45E57FDD531C9477voidped: Ped, toggle: BOOL
_0x46D42883E873C1D7Anyped: Ped
_0x4820A6939D7CEF28voidp0: Any, p1: Any
_0x4823F13A21F51964Anyp0: Any, p1: Any
_0x486C96A0DCD2BC92Anyp0: Any, p1: Any
_0x495A04CAEC263AF8Anyp0: Any, p1: Any
_0x58425FCA3D3A2D15Anyp0: Any
_0x5A695BD328586B44Anyp0: Any, p1: Any
_0x5B235F24472F2C3BAnyp0: Any, p1: Any
_0x63B83A526329AFBCvoidp0: Any
_0x641351E9AD103890voidp0: Any, p1: Any
_0x65DC4AC5B96614CBintweaponHash: Hash
_0x74C2365FDD1BB48Fvoidp0: Any, p1: Any
_0x74C8000FDD1BB111Anyp0: Any, p1: Any
_0x74C8000FDD1BB222Anyp0: Any, p1: Any
_0x74C9080FDD1BB48Evoidp0: Any, p1: Any
_0x74C9080FDD1BB48Fvoidp0: Any, p1: Any
_0x74C90AAACC1DD48Fvoidp0: Any
_0x80BB243789008A82Anyp0: Any, p1: Any
_0x8A779706DA5CA3DDvoidp0: Any, p1: Any, p2: Any
_0x9409C62504A8F9E9voidp0: Any, p1: Any
_0x95CA12E2C68043E5Anyp0: Any, p1: Any
_0x9CCA3131E6B53C68Anyp0: Any, p1: Any, p2: Any
_0x9EEFD670F10656D7HashweaponCollection: Hash, weaponGroup: Hash
_0x9F0E1892C7F228A8Anyp0: Any
_0xA2091482ED42EF85Anyp0: Any, p1: Any
_0xA3716A77DCF17424voidp0: Any, p1: Any, p2: Any
_0xA769D753922B031Bvoidp0: Any, p1: Any, p2: Any
_0xABC18A28BAD4B46FAnyp0: Any, p1: Any
_0xAFFD0CCF31F469B8Anyp0: Any
_0xB0FB9B196A3D13F0voidp0: Any, p1: Any, p2: Any
_0xB832F1A686B9B810voidp0: Any, p1: Any, p2: Any
_0xBC9444F2FF94A9C0Anyp0: Any
_0xBFCA7AFABF9D7967Anyp0: Any, p1: Any
_0xC5899C4CD2E2495Dvoidp0: Any
_0xCD356B42C57BFE01BOOLped: Ped, p1: Any*
_0xD2209866B0CB72EAAnyp0: Any, p1: Any
_0xD4C6E24D955FF061voidp0: Any
_0xD53846B9C931C181voidp0: Any, p1: Any, p2: Any
_0xD63B4BA3A02A99E0voidp0: Any, p1: Any
_0xE9B3FEC825668291voidp0: Any, p1: Any, p2: Any
_0xEA522F991E120D45Anyp0: Any
_0xEC97101A8F311282Anyp0: Any
_0xECBB26529A737EF6voidp0: Any
_0xF08D8FEB455F2C8Cvoidped: Ped, toggle: BOOL
_0xF252A85B8F3F8C58BOOLweaponCollection: Hash, dualwieldVariant: Hash
_0xF2F585411E748B9CAnyp0: Any, p1: Any
_0xF8204EF17410BF43HashweaponGroupHash: Hash, p1: float, p2: float, p3: Any
_add_ammo_to_pedvoidped: Ped, weaponHash: Hash, amount: int, addReason: Hash
_add_ammo_to_ped_by_typevoidped: Ped, ammoType: Hash, amount: int, addReason: Hash
_clear_ped_last_weapon_damagevoidped: Ped
_create_weapon_objectObjectweaponHash: Hash, ammoCount: int, x: float, y: float, z: float, showWorldModel: BOOL, scale: float
_disable_ammo_type_for_pedvoidped: Ped, ammoHash: Hash
_disable_ammo_type_for_ped_weaponvoidped: Ped, weaponHash: Hash, ammoHash: Hash
_enable_ammo_type_for_pedvoidped: Ped, weaponHash: Hash
_enable_ammo_type_for_ped_weaponvoidped: Ped, weaponHash: Hash, ammoHash: Hash
_enable_weapon_restoreBOOLped: Ped
_get_ammo_in_clip_by_inventory_uidBOOLped: Ped, ammo: int*, inventoryUid: Any*
_get_ammo_type_for_weaponHashweaponHash: Hash
_get_best_ped_weapon_in_groupHashped: Ped, weaponGroup: Hash, p2: BOOL, p3: BOOL
_get_best_ped_weapon_in_inventoryAnyped: Ped, p1: Any, guidPrimary: Any*
_get_can_twirl_weaponBOOLweaponHash: Hash
_get_current_ammo_type_from_guidHashped: Ped, weaponGuid: Any*
_get_current_ped_weapon_ammo_typeHashped: Ped, weaponObject: Object
_get_default_ped_weapon_collectionHashpedModel: Hash
_get_default_unarmed_weapon_hashHashped: Ped
_get_max_lockon_distance_of_current_ped_weaponfloatped: Ped
_get_ped_current_held_weaponHashped: Ped
_get_ped_gun_spinning_equipped_kit_emote_twirlHashped: Ped
_get_ped_gun_spinning_hash_from_weapon_emote_variationHashped: Ped, weaponEmoteVariation: int
_get_ped_hogtie_weaponHashped: Ped
_get_ped_weapon_in_slotHashped: Ped, slotHash: Hash
_get_ped_weapon_objectObjectped: Ped, p1: BOOL
_get_ped_worst_weaponHashped: Ped, p1: BOOL, p2: BOOL, p3: BOOL
_get_player_ped_quick_swap_weapon_by_guidvoidped: Ped, guidPrimary: Any*, guidSecondary: Any*
_get_weapon_attach_pointintped: Ped, attachPoint: int
_get_weapon_component_type_modelHashcomponentHash: Hash
_get_weapon_damagefloatweaponObject: Object
_get_weapon_dirtfloatweaponObject: Object
_get_weapon_emote_variationintped: Ped, variation: int
_get_weapon_gun_spinning_weapon_emote_trick_type_hashHashemote: Hash, weaponEmoteTrickType: int
_get_weapon_nameconst char*weaponHash: Hash
_get_weapon_name_2const char*weaponHash: Hash
_get_weapon_name_with_permanent_degradationconst char*weaponHash: Hash, permanentDegradationLevel: float
_get_weapon_object_from_pedObjectped: Ped, p1: BOOL
_get_weapon_scalefloatweaponObject: Object
_get_weapon_sootfloatweaponObject: Object
_get_weapon_stat_idHashweaponHash: Hash
_get_weapon_type_from_ammo_typeHashammoType: Hash
_get_weapon_unlockHashweaponHash: Hash
_get_weapontype_modelHashweaponHash: Hash
_get_weapontype_slotHashweaponHash: Hash
_give_weapon_collection_to_pedvoidped: Ped, weaponCollection: Hash
_give_weapon_component_to_entityvoidentity: Entity, componentHash: Hash, weaponHash: Hash, p3: BOOL
_give_weapon_component_to_weapon_objectvoidweaponObject: Object*, ped: Ped, componentHash: Hash, p3: BOOL
_has_entity_been_damaged_by_weaponBOOLentity: Entity, weaponName: Hash, weaponType: int
_has_entity_been_damaged_by_weapon_recentlyBOOLentity: Entity, weaponHash: Hash, ms: int
_has_ped_got_weapon_componentBOOLped: Ped, componentHash: Hash, weaponHash: Hash
_has_weapon_asset_loadedBOOLweaponHash: Hash
_hide_ped_weaponsvoidped: Ped, p0: int, immediately: BOOL
_holster_ped_weaponsvoidped: Ped, p1: BOOL, p2: BOOL, p3: BOOL, immediately: BOOL
_is_ammo_silentBOOLammoHash: Hash
_is_ammo_silent_2BOOLammoHash: Hash
_is_ammo_type_valid_for_weaponBOOLweaponHash: Hash, ammoHash: Hash
_is_ammo_validBOOLammoHash: Hash
_is_ped_current_weapon_holsteredBOOLped: Ped
_is_target_ped_constrained_by_ped_using_bolasBOOLped: Ped, targetPed: Ped
_is_weapon_binocularsBOOLweaponHash: Hash
_is_weapon_kitBOOLweaponHash: Hash
_is_weapon_kit_2BOOLweaponHash: Hash
_is_weapon_knifeBOOLweaponHash: Hash
_is_weapon_lanternBOOLweaponHash: Hash
_is_weapon_lassoBOOLweaponHash: Hash
_is_weapon_one_handedBOOLweaponHash: Hash
_is_weapon_silentBOOLweaponHash: Hash
_is_weapon_sniperBOOLweaponHash: Hash
_is_weapon_throwableBOOLweaponHash: Hash
_is_weapon_torchBOOLweaponHash: Hash
_is_weapon_two_handedBOOLweaponHash: Hash
_listen_projectile_hit_eventsvoidlisten: BOOL
_make_ped_reloadAnyped: Ped
_refill_ammo_in_clipAnyped: Ped, clipInventoryUid: Any*, p2: int
_refill_ammo_in_current_ped_weaponAnyped: Ped
_remove_all_ped_ammovoidped: Ped
_remove_ammo_from_pedvoidped: Ped, weaponHash: Hash, amount: int, removeReason: Hash
_remove_ammo_from_ped_by_typevoidped: Ped, ammoHash: Hash, amount: int, removeReason: Hash
_remove_weapon_assetvoidweaponHash: Hash
_remove_weapon_component_from_pedvoidped: Ped, componentHash: Hash, weaponHash: Hash
_remove_weapon_from_ped_by_guidvoidped: Ped, weaponGuid: Any*, removeReason: Hash
_request_weapon_assetvoidweaponHash: Hash, p1: int, p2: BOOL
_send_weapon_to_inventoryvoidped: Ped, weaponHash: Hash
_set_active_gun_spinning_equip_kit_emote_twirlvoidped: Ped, emote: Hash
_set_active_gun_spinning_kit_emote_twirlvoidped: Ped, weaponEmoteTrickType: int, spin: Hash
_set_allow_dual_wieldvoidped: Ped, allow: BOOL
_set_ammo_in_turretvoidvehicle: Vehicle, turretHash: Hash, ammo: int
_set_ammo_type_for_ped_weaponvoidped: Ped, weaponHash: Hash, ammoHash: Hash
_set_ammo_type_for_ped_weapon_inventoryvoidped: Ped, weaponInventoryUid: Any*, ammoHash: Hash
_set_force_auto_equipvoidped: Ped, toggle: BOOL
_set_force_current_weapon_into_cocked_statevoidped: Ped, attachPoint: int
_set_gun_spinning_inventory_slot_id_activatevoidped: Ped, emoteType: int
_set_ped_all_weapons_visibilityvoidped: Ped, visible: BOOL
_set_ped_infinite_ammo_clipvoidped: Ped, toggle: BOOL
_set_ped_weapon_attach_point_visibilityvoidped: Ped, attachPoint: int, visible: BOOL
_set_vehicle_weapon_heading_limitsvoidvehicle: Vehicle, p1: int, minHeading: float, maxHeading: float
_set_vehicle_weapon_heading_limits_2Anyvehicle: Vehicle, p1: int, minHeading: float, maxHeading: float
_set_weapon_damagevoidweaponObject: Object, level: float, p2: BOOL
_set_weapon_degradationvoidweaponObject: Object, level: float
_set_weapon_dirtvoidweaponObject: Object, level: float, p2: BOOL
_set_weapon_level_thresholdvoidweaponObject: Object, threshold: float
_set_weapon_scalevoidweaponObject: Object, scale: float
_set_weapon_sootvoidweaponObject: Object, level: float, p2: BOOL
get_allow_dual_wieldBOOLped: Ped
get_ammo_in_clipBOOLped: Ped, ammo: int*, weaponHash: Hash
get_ammo_in_ped_weaponintped: Ped, weaponHash: Hash
get_best_ped_shortarm_guidvoidped: Ped, outGUID: Any*, p2: BOOL, p3: BOOL
get_best_ped_weaponHashped: Ped, p1: BOOL, p2: BOOL
get_current_ped_vehicle_weaponBOOLped: Ped, weaponHash: Hash*
get_current_ped_weaponBOOLped: Ped, weaponHash: Hash*, p2: BOOL, attachPoint: int, p4: BOOL
get_current_ped_weapon_entity_indexEntityped: Ped, attachPoint: int
get_max_ammoBOOLped: Ped, ammo: int*, weaponHash: Hash
get_max_ammo_in_clipintped: Ped, weaponHash: Hash, p2: BOOL
get_ped_ammo_by_typeintped: Ped, ammoType: Hash
get_ped_ammo_type_from_weaponHashped: Ped, weaponHash: Hash
get_ped_backup_weaponHashped: Ped, p1: BOOL
get_ped_last_weapon_impact_coordBOOLped: Ped, coords: Vector3*
get_ped_weapon_guid_at_attach_pointBOOLped: Ped, attachPoint: int, weaponGuid: Any*
get_weapon_clip_sizeintweaponHash: Hash
get_weapon_degradationfloatweaponObject: Object
get_weapon_permanent_degradationfloatweaponObject: Object
get_weapontype_groupHashweaponHash: Hash
give_delayed_weapon_to_pedvoidped: Ped, weaponHash: Hash, ammoCount: int, p3: BOOL, addReason: Hash
give_weapon_to_pedHashped: Ped, weaponHash: Hash, ammoCount: int, bForceInHand: BOOL, bForceInHolster: BOOL, attachPoint: int, bAllowMultipleCopies: BOOL, p7: float, p8: float, addReason: Hash, bIgnoreUnlocks: BOOL, permanentDegradation: float, p12: BOOL
give_weapon_to_ped_with_optionsBOOLped: Ped, data: Any*, outData: Any*
has_ped_got_weaponBOOLped: Ped, weaponHash: Hash, p2: int, p3: BOOL
has_weapon_got_weapon_componentBOOLweapon: Object, addonHash: Hash
hide_ped_weapon_for_scripted_cutscenevoidped: Ped, toggle: BOOL
is_ped_armedBOOLped: Ped, flags: int
is_ped_carrying_weaponBOOLped: Ped, weaponHash: Hash
is_ped_weapon_ready_to_shootBOOLped: Ped
is_weapon_a_gunBOOLweaponHash: Hash
is_weapon_bowBOOLweaponHash: Hash
is_weapon_melee_weaponBOOLweaponHash: Hash
is_weapon_pistolBOOLweaponHash: Hash
is_weapon_repeaterBOOLweaponHash: Hash
is_weapon_revolverBOOLweaponHash: Hash
is_weapon_rifleBOOLweaponHash: Hash
is_weapon_shotgunBOOLweaponHash: Hash
is_weapon_validBOOLweaponHash: Hash
make_ped_drop_weaponEntityped: Ped, p1: BOOL, attachPoint: int, p3: BOOL, p4: BOOL
remove_all_ped_weaponsvoidped: Ped, p1: BOOL, p2: BOOL
remove_weapon_component_from_weapon_objectvoidweaponObject: Object, component: Hash
remove_weapon_from_pedvoidped: Ped, weaponHash: Hash, p2: BOOL, removeReason: Hash
set_allow_any_weapon_dropvoidped: Ped, toggle: BOOL
set_ammo_in_clipBOOLped: Ped, weaponHash: Hash, ammo: int
set_current_ped_vehicle_weaponBOOLped: Ped, weaponHash: Hash
set_current_ped_weaponvoidped: Ped, weaponHash: Hash, equipNow: BOOL, attachPoint: int, p4: BOOL, p5: BOOL
set_current_ped_weapon_by_guidvoidped: Ped, weaponUid: Any*, p2: BOOL, attachPoint: int, p4: BOOL, p5: BOOL
set_instantly_equip_weapon_pickupsvoidped: Ped, toggle: BOOL
set_ped_ammovoidped: Ped, weaponHash: Hash, ammo: int
set_ped_ammo_by_typevoidped: Ped, ammoType: Hash, ammo: int
set_ped_ammo_to_dropvoidped: Ped, p1: int, p2: int
set_ped_current_weapon_visiblevoidped: Ped, visible: BOOL, deselectWeapon: BOOL, p3: BOOL, p4: BOOL
set_ped_drops_inventory_weaponvoidped: Ped, weaponHash: Hash, xOffset: float, yOffset: float, zOffset: float, ammoCount: int
set_ped_drops_weapons_when_deadvoidped: Ped, toggle: BOOL
set_ped_infinite_ammovoidped: Ped, toggle: BOOL, weaponHash: Hash
set_player_ped_quick_swap_weapon_by_guidvoidped: Ped, guidPrimary: Any*, guidSecondary: Any*
set_vehicle_weapon_headingvoidvehicle: Vehicle, seatIndex: int, heading: float, p3: BOOL
should_weapon_be_discarded_when_swappedBOOLweaponHash: Hash

Generated declarations; individual native behaviour may be undocumented. See argument and result mapping before calling a native.