- Client (production/canary) and FXServer version
Irrelevant
- What you expected to happen
GetWeaponTimeBetweenShots should return a float
- What actually happens
GetWeaponTimeBetweenShots returns an integer
- Category of bug (eg. client, server, weapons, peds, native)
Native
- Reproducible steps, preferably with example script(s)
Irrelevant
GetWeaponTimeBetweenShots natively returns a float value, but on the C# Native API it returns an integer.
My current workaround is the following:
var fireRate = BitConverter.ToSingle(BitConverter.GetBytes(GetWeaponTimeBetweenShots(weaponHash)), 0);
nta
2
Intended and can’t be changed without breaking source+binary compatibility (i.e. if this is fixed, your assembly, even in binary form, won’t work anymore).
see cs_type annotation