Jump to content

GetResourceFromName not working with onClientResourceStart?


BlueTheFurry

Recommended Posts

Hello, i have a problem with my MTA Script, i am trying to add an Event wich starts the function when a specific resource is started on the client-side, here is the code:

  
addEventHandler('onClientResourceStart', getResourceFromName("myresource"), 
    function() 
  
-- insert code here 
  
  end 
) 
  

Error:

Bad argument @ addEventHandler, expected element at Argument 2, got resource-data

Greetings

EDIT: Figured Something out, can be closed!

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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