Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GivePlayerItem(playerid, instance, amount)
- local slot = checkPlayerItem(playerid, instance);
- if slot then
- Player[playerid].Items[slot].amount = Player[playerid].Items[slot].amount + amount;
- else
- table.insert(Player[playerid].Items, { instance = string.upper(instance), amount = amount });
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement