_ENABLE_WEAPON_RESTORE
Based on its name and signature, here is our best reading:
Appears to enable restoring the ped's weapons. Exact behavior is not documented.
Signature
BOOL _ENABLE_WEAPON_RESTORE(Ped ped); // 0xC395355843BE134B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
Facts
| Name | _ENABLE_WEAPON_RESTORE |
|---|---|
| Hash | 0xC395355843BE134B |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xC395355843BE134B, -- _ENABLE_WEAPON_RESTORE
PlayerPedId() -- Ped ped
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xC395355843BE134B", // _ENABLE_WEAPON_RESTORE
PlayerPedId(), // Ped ped
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xC395355843BE134B, // _ENABLE_WEAPON_RESTORE
API.PlayerPedId() // Ped ped
);Related WEAPON natives
- _ENABLE_AMMO_TYPE_FOR_PED_WEAPON
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _GET_WEAPON_GUN_SPINNING_WEAPON_EMOTE_TRICK_TYPE_HASH
- _GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT
- _ENABLE_ALL_SPECIAL_AMMO_FOR_PED
- _ENABLE_AMMO_TYPE_FOR_PED
- HAS_WEAPON_GOT_WEAPON_COMPONENT
- IS_WEAPON_MELEE_WEAPON
- REMOVE_WEAPON_COMPONENT_FROM_WEAPON_OBJECT
- _ATTACH_WEAPON_TO_HORSE_HOLSTER
- _CLEAR_PED_LAST_WEAPON_DAMAGE
- _CREATE_WEAPON_OBJECT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.