• 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!

TFS 0.X getPlayerSlotItem(cid, CONST_SLOT_AMMO).???

samandriel

Active Member
Joined
Oct 19, 2016
Messages
242
Solutions
1
Reaction score
46
i can use:
Code:
        local item = getPlayerSlotItem(cid, CONST_SLOT_AMMO).itemid
        print(item)

to get itemid right?
there are others options?

can i get Item_Name and Item_Count too by using this function?
 
Solution
thank you bro, but i know this
i just would like to know if there are more options to do on:
getPlayerSlotItem(cid, CONST_SLOT_AMMO).???

besides itemid, there is anyother else? if there is where can i see the options :D

You're welcome as far as i know:

There are 2 more options '.uid' / '.aid'... (unique/action id)
Not sure if there is any other option and where you can find it... I find those stuff accidently through the time...

maybe in sources or in lib/core?

Animera
Maybe usefull for you: [LUA] 0.4 TFS Functions (https://otland.net/threads/lua-0-4-tfs-functions.149040/)


Code:
getPlayerItemCount(cid, item)
getItemNameById(item)

In your case as you are using item as variable for the itemid of the item in the ammo slot....


Animera

thank you bro, but i know this
i just would like to know if there are more options to do on:
getPlayerSlotItem(cid, CONST_SLOT_AMMO).???

besides itemid, there is anyother else? if there is where can i see the options :D
 
thank you bro, but i know this
i just would like to know if there are more options to do on:
getPlayerSlotItem(cid, CONST_SLOT_AMMO).???

besides itemid, there is anyother else? if there is where can i see the options :D

You're welcome as far as i know:

There are 2 more options '.uid' / '.aid'... (unique/action id)
Not sure if there is any other option and where you can find it... I find those stuff accidently through the time...

maybe in sources or in lib/core?

Animera
 
Solution
Back
Top