_GET_WEAPON_NAME_WITH_PERMANENT_DEGRADATION
Returns the weapon's display name label, taking the given permanent degradation level into account.
Signature
const char* _GET_WEAPON_NAME_WITH_PERMANENT_DEGRADATION(Hash weaponHash, float permanentDegradationLevel); // 0x7A56D66C78D8EF8E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weaponHash | Hash |
| 2 | permanentDegradationLevel | float |
Facts
| Name | _GET_WEAPON_NAME_WITH_PERMANENT_DEGRADATION |
|---|---|
| Hash | 0x7A56D66C78D8EF8E |
| Namespace | |
| Returns | const char* |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x7A56D66C78D8EF8E, -- _GET_WEAPON_NAME_WITH_PERMANENT_DEGRADATION
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
0.0, -- float permanentDegradationLevel
Citizen.ResultAsString()
)
print(result)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x7A56D66C78D8EF8E", // _GET_WEAPON_NAME_WITH_PERMANENT_DEGRADATION
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0.0, // float permanentDegradationLevel
Citizen.resultAsString()
);
console.log(result)string result = Function.Call<string>((Hash)0x7A56D66C78D8EF8E, // _GET_WEAPON_NAME_WITH_PERMANENT_DEGRADATION
(uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0.0f // float permanentDegradationLevel
);Related WEAPON natives
- _GET_WEAPON_NAME_2
- _GET_WEAPON_NAME
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _GET_WEAPON_GUN_SPINNING_WEAPON_EMOTE_TRICK_TYPE_HASH
- GET_WEAPON_PERMANENT_DEGRADATION
- _GET_WEAPON_ATTACH_POINT
- _GET_WEAPON_COMPONENT_TYPE_MODEL
- _GET_WEAPON_DAMAGE
- _GET_WEAPON_DIRT
- _GET_WEAPON_EMOTE_VARIATION
- _GET_WEAPON_FROM_HORSE_HOLSTER
- _GET_WEAPON_HAS_MULTIPLE_AMMO_TYPES
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.