president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Hi folks!
The script below is returning as a nil value, it's suppost to return false if the item in players hand is not 7735.
Thanks.
The script below is returning as a nil value, it's suppost to return false if the item in players hand is not 7735.
Code:
local slotItem = player:getSlotItem(CONST_SLOT_RIGHT)
if slotItem:getId() ~= 7735 then
player:sendCancelMessage("Sorry, not possible.")
return false
end
Thanks.