I don't know what I am looking for can someone help?
1 1

1 post in this topic

Recommended Posts

I have this lua file in the right place and am looking for functions like these

 

function Itemcool()
local inv = getPlayer():getInventory();
local player = getPlayer();

it = inv:FindAndReturn("MC.myfoods");

if it then
    getPlayer():Say("I have the cure");
    local BP;
    BP = player:getBodyDamage();
    BP:RestoreToFullHealth();
end
    
end

 

Events.OnFillInventoryObjectContextMenu.Add(invContextMenu);

 

in something like (help pls):

2019-06-16 (1).png

Share this post


Link to post
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
1 1