Hugo Qwerty Posted January 21, 2023 Share Posted January 21, 2023 The obvious answer would be that they run on the server, but that would mean there is lots of 'hidden' network code running to enable that. So I'm inclined to think it is running on the client, is that right? I'm wanting to write an OnCreate that checks the server's global mod data, and I would rather make it MP compatible now instead of needing to re-write it later. I tried searching on the Discord but couldn't find anything (& I only have read access). Link to comment Share on other sites More sharing options...
Hugo Qwerty Posted January 23, 2023 Author Share Posted January 23, 2023 Same question for OnTest, OnCanPerform & OnGiveXP. The more I think about it, they must be on the server - although it does seem odd for the client to keep asking for permission (via OnTest / OnCanPerform) from the server. Link to comment Share on other sites More sharing options...
Hugo Qwerty Posted January 23, 2023 Author Share Posted January 23, 2023 Looks like I've found my answer, code in /server/ still runs on the client. https://discord.com/channels/136501320340209664/232196827577974784/1067137160630771792 Link to comment Share on other sites More sharing options...
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