Jump to content

Starting Maps for certain players only


Recommended Posts

Posted

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?

Posted

Send the map data to players and create the objects on the client side

triggerClientEvent 
--or 
triggerLatentClientEvent 

Posted
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?

Posted

You can save the files using file functions and load the scripts using loadstring

fileCreate 
fileOpen 
fileWrite 
fileRead 
  
loadstring 

Posted

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 ?

Posted

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?

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...