Chessnut / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.rocks
MIT License
94 stars 77 forks source link

A way to get the base of an item #117

Closed Mukhle closed 10 years ago

Mukhle commented 10 years ago

A way to get the base of an itemTable since i haven't been able to find one

Chessnut commented 10 years ago

nut.item.Get(itemTable.base)

On Wednesday, April 2, 2014, Qemist0365 notifications@github.com wrote:

A way to get the base of an itemTable since i haven't been able to find one

Reply to this email directly or view it on GitHubhttps://github.com/Chessnut/NutScript/issues/117 .

Mukhle commented 10 years ago

Returns nil for me

Chessnut commented 10 years ago

Then the item does not have a baseitem.

On Wednesday, April 2, 2014, Brian Cook chessnutist@gmail.com wrote:

nut.item.Get(itemTable.base)

On Wednesday, April 2, 2014, Qemist0365 notifications@github.com<javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

A way to get the base of an itemTable since i haven't been able to find one

Reply to this email directly or view it on GitHubhttps://github.com/Chessnut/NutScript/issues/117 .

Chessnut commented 10 years ago

Actually, try itemTable.BaseClass

On Thursday, April 3, 2014, Brian Cook chessnutist@gmail.com wrote:

Then the item does not have a baseitem.

On Wednesday, April 2, 2014, Brian Cook chessnutist@gmail.com<javascript:_e(%7B%7D,'cvml','chessnutist@gmail.com');> wrote:

nut.item.Get(itemTable.base)

On Wednesday, April 2, 2014, Qemist0365 notifications@github.com wrote:

A way to get the base of an itemTable since i haven't been able to find one

Reply to this email directly or view it on GitHubhttps://github.com/Chessnut/NutScript/issues/117 .

Mukhle commented 10 years ago

Works. Thank you