The Lab
WEAPON native

_GET_WEAPON_NAME_WITH_PERMANENT_DEGRADATION

returns const char*2 paramsbuild 1207

Returns the weapon's display name label, taking the given permanent degradation level into account.

Signature

C
const char* _GET_WEAPON_NAME_WITH_PERMANENT_DEGRADATION(Hash weaponHash, float permanentDegradationLevel); // 0x7A56D66C78D8EF8E b1207

Parameters

#NameType
1weaponHashHash
2permanentDegradationLevelfloat

Facts

Facts about _GET_WEAPON_NAME_WITH_PERMANENT_DEGRADATION
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.

Lua
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)
JavaScript
// 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)
C#
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
);
All WEAPON natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.