Jump to content

How to get if on my PrimaryHand i have a rotten food


Snakeman

Recommended Posts

I tried with some codes but not working
 

    local Player = getSpecificPlayer(0);
    local Item = Player:getPrimaryHandItem();

    if (instanceof(Item, "Food") and Item:getType() == "Bass") then
        if Item ~= nil and Item:IsRotten() then
            luautils.okModal("YES", true);
        else

            luautils.okModal("NO", true);
        end
    end

--SOLVED!!!!

Edited by Snakeman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...