GET_WEAPON_PERMANENT_DEGRADATION
Related to rust of weapons
Hash
0xD56E5F336C675EFARuntime name
GetWeaponPermanentDegradationNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
Signature
float GET_WEAPON_PERMANENT_DEGRADATION(Object weaponObject);Parameters
| Name | Type | Description |
|---|---|---|
weaponObject | Object | — |
Returns float
Description
Related to rust of weapons
Usage
local retval = GetWeaponPermanentDegradation(weaponObject)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD56E5F336C675EFA, weaponObject, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetWeaponPermanentDegradation(weaponObject);
// by hash
const retval = Citizen.invokeNative('0xD56E5F336C675EFA', weaponObject, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0xD56E5F336C675EFA, weaponObject);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.