Jump to content

Set Vehicle Component Visible


ivan8065

Recommended Posts

Posted

Hello, I would like to use function setVehicleComponentVisible on my server for hiding some car parts but I want to set visibility of car part on some car for every player same, so could you help me synchronize it for all players please? Thank you.

Posted

The easy but inefficient way would be to use element data to sync the list of visible/hidden components.

However it is preferable to use events: Have the server authoritatively control which components are visible and which aren't, by sending an event to all clients (or all clients within streaming proximity) regarding any changes in component visibility; and have the server also track these details to send the visiblities data to players connecting afterwards (or entering streaming range).

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