Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local has, key, item = exports.global:hasItem( value, 2)
- if has then
- otherNumber = ownNumber
- ownNumber = item ---how do I get the itemValue of has?
- else
- outputChatBox( "(( You do not have a phone. ))", player, 255, 0, 0 )
- end
- function hasItem(element, itemID, itemValue)
- local success, error = loadItems( element )
- if success then
- for key, value in pairs(saveditems[element]) do
- if value[1] == itemID and ( not itemValue or itemValue == value[2] ) then
- return true, key, value[2], value[3]
- end
- end
- return false
- else
- return false, "loadItems error: " .. error
- end
- end
Add Comment
Please, Sign In to add comment