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!