JeViCo Posted April 10, 2018 Share Posted April 10, 2018 Good day, community! Is that possible to cancel event "onResourceStart" from other script? For example i have 2 compiled lua scripts(server+client) and one person adds 3 lua script. Can the third lua script cancel event(onResourceStart) from server-side script or not? And how can i protect my resource from intervention? Link to comment
itHyperoX Posted April 10, 2018 Share Posted April 10, 2018 Can the third lua script cancel event(onResourceStart) from server-side script or not? no. Link to comment
JeViCo Posted April 10, 2018 Author Share Posted April 10, 2018 3 hours ago, TheMOG said: Can the third lua script cancel event(onResourceStart) from server-side script or not? no. kk i'll trust u Link to comment
MIKI785 Posted April 10, 2018 Share Posted April 10, 2018 Any script can call cancelEvent on any event. The number or order of script files within a resource makes no difference. Link to comment
Master_MTA Posted April 10, 2018 Share Posted April 10, 2018 (edited) https://wiki.multitheftauto.com/wiki/AddDebugHook is that which you are looking for? use it with pre event Edited April 10, 2018 by Master_MTA 1 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