this is my code:
function uziCheck ()
local uzistat = getPedStat(client,75)
if getPedWeapon(client) == 32 or getPedWeapon(client) == 28 then
if uzistat == 500 then
setPedStat (client, 75, 1000)
-- outputChatBox ("test: uzi stat: 1000", client)
reloadPedWeapon (client)
else
-- outputChatBox ("test: uzi stat: 500", client)
setPedStat (client, 75, 500)
reloadPedWeapon (client)
end
else
outputChatBox ("You must be holding Tec9/Uzi in order to change your Tec9/Uzi stat", client) end
end
I'm trying to see if I made a mistake, but it looks fine to me.