Jump to content
HarryNutz

How to? Vehicles retain color...

Recommended Posts

So I'm wondering if anyone knows how to make vehicles retain their color during a restart, like how clothes do and if you could point me in the right direction so I can see if our head admin can find the time to add the ability to our server?

Share this post


Link to post
Share on other sites

Ok so to explain in more detail, we go to a gas station and have the option for a paint shop to paint our vehicle, backpack and uniform. When the server restarts and we load back in, our clothes always remain whatever color we painted them, but vehicles always have to be taken back to the service station paint shop to be painted again... was hoping someone was familiar with this and knew of a way that the vehicles wouldn't keep losing the color and having to be repainted  as it becomes annoyingly repetitious.

Share this post


Link to post
Share on other sites

Had this script in the beginning but wasnt really happy with, so i didnt dip deeper into it.

You could pick the OwnerID for the vehicle and save with the choosen color to profilenamespace or redis.

 

 

 

Share this post


Link to post
Share on other sites
3 hours ago, vbawol said:

Hey guys, This config controls the texture persistence feature in Epoch: https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server_settings/configs/CfgEpochVehicles.h

Thanks vbawaol... 

But is the paint shop feature a part of these settings you are pointing to? If so could you be a little more specific about what needs to be done for the paint shop colors to persist? If you have the time that is... and I appreciate it either way.

Share this post


Link to post
Share on other sites
1 hour ago, HarryNutz said:

Thanks vbawaol... 

But is the paint shop feature a part of these settings you are pointing to? If so could you be a little more specific about what needs to be done for the paint shop colors to persist? If you have the time that is... and I appreciate it either way.

Do you have a link to the paint shop code? One would need to make use of our configs to use our system to add persistent preset textures or colors. If your using dynamic colors we might be able to support that as a additional database value.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...