Jump to content

Making a client-sided element "appear" in server-side


NeXTreme

Recommended Posts

Hey.

I've been trying to create an object on client-side, then pass it with an event to server side and do stuff with it from there. Calling the event fails, and I've done some testing trying to debug it. Seems that if the element only exists in client-side, you can't pass it over to the server. So, is there a way to create an element on client-side, and then "moving" it to server somehow and making it a "legit" element there too? Obviously trying to avoid calling a server-sided function to create the object, and then returning it back to the client again.

Link to comment

what information of the object do you want to give to the server? or what do you want to do with it.

And yeah, i've tried to triggerServerEvent and send a client created vehicle as argument but then it didn't trigger, so i changed the code and created it server sided instead.

Link to comment

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...