Banane Posted May 8, 2013 Share Posted May 8, 2013 Hey Guys! It is possible to start maps for certain players only? Everyone who is allowed to gets the map stuff to download, other don't. Something like that possible? Link to comment
DiSaMe Posted May 8, 2013 Share Posted May 8, 2013 Send the map data to players and create the objects on the client side triggerClientEvent --or triggerLatentClientEvent Link to comment
Banane Posted May 8, 2013 Author Share Posted May 8, 2013 Send the map data to players and create the objects on the client side triggerClientEvent --or triggerLatentClientEvent That certainly works for the .map file. But what about scripts and other files? Link to comment
DiSaMe Posted May 8, 2013 Share Posted May 8, 2013 You can save the files using file functions and load the scripts using loadstring fileCreate fileOpen fileWrite fileRead loadstring Link to comment
Banane Posted May 8, 2013 Author Share Posted May 8, 2013 Ohh Thanks! Thats something I can work with! Thank you. EDIT: Alright, its works pretty good. But onClientResourceStart isn't triggered that way Someone knows how to get it triggered? Or do I have to make my own event ? Link to comment
Banane Posted May 13, 2013 Author Share Posted May 13, 2013 Hey Guys, I still didn't find a solution for my "onClientResourceStart" Problem. I can't trigger it since its not marked as remotly triggerable. Someone knows a way how to get it done? Link to comment
DiSaMe Posted May 13, 2013 Share Posted May 13, 2013 Remote trigger means triggering from server to client and vice-versa. Triggering onClientResourceStart doesn't require that. But since that may cause some mess, you may want to try making a wrapper function for addEventHandler which defines specific behavior for onClientResourceStart event, such as storing the handler functions into the table and executing them at the end of the script. 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