• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Function] getItemName()

Hyresu

Professional Dumb
Joined
Apr 7, 2012
Messages
56
Solutions
8
Reaction score
23
Location
Chile
Well, there exists an function called getItemNameById, but, what happens when you use getItemNameById(0) with 0? it returns nil and launchs a error bug, using this function, will not send a error msg, it will return: nothing...
Easy function, but usseful
Code:
function getItemName(item)
if item >= 1 then
return getItemNameById(item)
else
return nothing
end
return false
end
Credits
100% Led
 
PHP:
function getItemName(item)
return item.uid > 0 and getItemNameById(item) or false
end
 
Back
Top