Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Example:
- local ped = PlayerPedId()
- local weaponGuid = DataView.ArrayBuffer(16 * 8)
- for attachPoint = 0, 3 do
- if (Citizen.InvokeNative(0x6929E22158E52265, ped, attachPoint, weaponGuid:Buffer())) then -- GET_PED_WEAPON_GUID_AT_ATTACH_POINT
- local ammo = Citizen.InvokeNative(0x4823F13A21F51964, ped, weaponGuid:Buffer()) or 0
- print(string.format("You have %s ammo in the weapon at attach point #%s", ammo, attachPoint))
- end
- end
- -- This will return the total ammo of each of the player weapon slots
Add Comment
Please, Sign In to add comment