_GET_MAX_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON
Returns the maximum lock-on distance of the ped's current weapon.
Signature
float _GET_MAX_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON(Ped ped); // 0x79B1A6E780266DB0 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
Facts
| Name | _GET_MAX_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON |
|---|---|
| Hash | 0x79B1A6E780266DB0 |
| Namespace | |
| Returns | float |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x79B1A6E780266DB0, -- _GET_MAX_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON
PlayerPedId(), -- Ped ped
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0x79B1A6E780266DB0", // _GET_MAX_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON
PlayerPedId(), // Ped ped
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0x79B1A6E780266DB0, // _GET_MAX_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON
API.PlayerPedId() // Ped ped
);Related WEAPON natives
- _GET_CURRENT_PED_WEAPON_AMMO_TYPE
- _GET_LOCKON_RANGE_CURRENT_WEAPON
- _GET_PED_CURRENT_HELD_WEAPON
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- GET_CURRENT_PED_VEHICLE_WEAPON
- GET_CURRENT_PED_WEAPON
- GET_CURRENT_PED_WEAPON_ENTITY_INDEX
- _GET_AMMO_IN_PED_WEAPON_FROM_GUID
- _GET_BEST_PED_WEAPON_IN_GROUP
- _GET_BEST_PED_WEAPON_IN_INVENTORY
- _GET_DEFAULT_PED_WEAPON_COLLECTION
- _GET_PED_GUN_SPINNING_HASH_FROM_WEAPON_EMOTE_VARIATION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.