NeXTreme Posted March 14, 2012 Share Posted March 14, 2012 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
arezu Posted March 14, 2012 Share Posted March 14, 2012 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
NeXTreme Posted March 14, 2012 Author Share Posted March 14, 2012 I wanted to pass the element itself to the server.. Anyway, seems I'm better off just creating the element itself on server-side... Link to comment
bandi94 Posted March 14, 2012 Share Posted March 14, 2012 you can't pass the element itself bk that element it's created on client side 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