getPedWeaponShootingRate
Reads GTA's current shooting-rate byte from a streamed ped's native instance.
Syntax
int getPedWeaponShootingRate(ped thePed)GTA task mapping
07DD SCM equivalent: SET_CHAR_SHOOT_RATE
There is no separate SCM getter and no CTask is created. This reads the byte written by SET_CHAR_SHOOT_RATE and consumed by GTA fight and gun-control tasks.
Arguments
thePedpedStreamed ped with a live native GTA instance.
Returns
The current value from 0 through 255, or -1 when the ped is streamed out or has no native instance.
Ownership and lifecycle
Low-level ped task calls require the client that simulates the living, streamed ped. Driving tasks also require control of the streamed vehicle. They do not create lifecycle handles; the optional native-task-runtime adds server-owned route epochs and reconstruction for drive_to routes. Gang-tag ownership is resource-exclusive, survives object streaming and recreation, and is released automatically when the owner stops.
- This is a client-local observation, not synchronized state.
- A later native recreation may produce a different value unless the responsible resource reapplies its intended policy.
OOP aliases
ped:getWeaponShootingRate()ped.weaponShootingRate
Where this comes from
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →