ikvindmooi Posted June 16, 2017 Share Posted June 16, 2017 Hello, I do have a question about calling an exports. I have an export to add profiles to an xml file the export is: exports.XML:addProfileToXML(id, username); Now I want to use this export event in an javascript function, but it is not triggering the function. It does work if I try to export it clientside but it doesn't in js. I tried using it with or without the "exports.XML:" but it doesnt work mta.triggerEvent("exports.XML:addProfileToXML", id, username); mta.triggerEvent("addProfileToXML", id, username); Link to comment
pa3ck Posted June 16, 2017 Share Posted June 16, 2017 (edited) If it's not working that way you'll need to create a function which will call the export, you can call functions from JS Edited June 16, 2017 by pa3ck Link to comment
ikvindmooi Posted June 16, 2017 Author Share Posted June 16, 2017 Oh yeh, didn't think about that xd, thank you. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now