Jump to content

[HELP] :/ How does this happen?


Imposter

Recommended Posts

addEventHandler ( "onResourceStart", getRootElement, onLoad ) 
--on line 44 in s_base.lua should be changed to: 
addEventHandler ( "onResourceStart", getRootElement(), onLoad ) 

Also.. You dont have to use getRootElement()

You can use 'root' as this is predefined.

-- So this:  
addEventHandler( "onResourceStart", getRootElement(), func ) 
-- Is the same as: 
addEventHandler( "onResourceStart", root, func ) 
  

Link to comment
addEventHandler ( "onResourceStart", getRootElement, onLoad ) 
--on line 44 in s_base.lua should be changed to: 
addEventHandler ( "onResourceStart", getRootElement(), onLoad ) 

Also.. You dont have to use getRootElement()

You can use 'root' as this is predefined.

-- So this:  
addEventHandler( "onResourceStart", getRootElement(), func ) 
-- Is the same as: 
addEventHandler( "onResourceStart", root, func ) 
  

thanks im gonna try this after

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...