Hello there.
I'm having a dilemma about this.
Is it better to create all elements(like objects) on client side, or server side?
Of course, there are lot of things which could determine which option is better. Pros of client-side
1. Creating thousands of objects on client-side is far better than on server-side (example: DM Maps)
2. Good for gamemodes which don't require too much sync Cons of client-side
1. Vehicles, peds, breakable objects aren't that well synced as if they would be on server-side
2. Security issues (everything on client side could be manipulated into malicious client's will)
3. Maps could be stolen Pros of server-side
1. Great sync for vehicles, peds, breakable objects
2. Clients cannot manipulate or steal server-sided elements by themselves
Cons of server-side
1. Huge performance impact when dealing with lot of elements(objects, vehicles)
2. Makes server laggy after some time
So, what do you think?
Is it better to sacrifice security for better loading or should the server handle it?
Should map loading type be based on gamemode/what we're loading?
Any better ideas?
Thanks for reading
I would appreciate if someone with experience could reply to this topic.