RedM Natives

GET_WEAPON_PERMANENT_DEGRADATION

Related to rust of weapons

Hash0xD56E5F336C675EFA
Runtime nameGetWeaponPermanentDegradation
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207

Signature

float GET_WEAPON_PERMANENT_DEGRADATION(Object weaponObject);

Parameters

NameTypeDescription
weaponObjectObject—

Returns float

Description

Related to rust of weapons

Usage

Lua
local retval = GetWeaponPermanentDegradation(weaponObject)

-- always works, by hash
local retval = Citizen.InvokeNative(0xD56E5F336C675EFA, weaponObject, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetWeaponPermanentDegradation(weaponObject);

// by hash
const retval = Citizen.invokeNative('0xD56E5F336C675EFA', weaponObject, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xD56E5F336C675EFA, weaponObject);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.