Jump to content

OOP Functions


3B00DG4MER

Recommended Posts

    local menu = exports[ "SAFMenu" ].Menu_create( localPlayer, bot:getData("name"),155,0, 0 ) 
    loadstring(exports[ "SAFMenu" ].Menu_open( localPlayer,absoluteX, absoluteY ))(menu) 

failed to call 'SAFMenu:Menu_open' [string "?"]

Bad Argument 1 [Expected String got Boolean]

attempt to call a boolean

Link to comment
local menu = exports[ "SAFMenu" ].Menu_create( localPlayer, bot:getData("name"),155,0, 0 ) 

As far as I know, exports is a table, but exports["SAFMenu"] is more like a class... I think you were meant to put a semi-colon ( : ) instead of the period ( . ) between exports["SAFMenu"] and Menu_create

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...