Jump to content

1 Screenshot

About This File

This should save you some time writing your own syncing when it comes to using player.setClothes() for values over 255 until 1.0 gets released. The download has example scenarios/commands you can use.

Serverside Functions:

player.changeClothes(Number componentId, Number drawable, Number texture, Bool save, Bool sync)
player.resetClothes()

Save parameter:

By setting this to true the script will remember these values and re-apply these when using player.resetClothes()

Sync parameter:

If you set this parameter to false the clothes will only be applied on the target client.

Set this to true and everyone will see the clothes!

 

Demonstration:

This GIF has both save and sync parameter set to false to preview the selected item before actually purchasing it. Once purchased, both save and sync are set to true to remember the purchased item and to sync it to all other clients

https://imgur.com/a/gsySyPc

 

And this GIF shows the same interaction but from the other client

https://imgur.com/a/0IankaB

  • Like 1

User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

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

Captien

   3 of 3 members found this review helpful 3 / 3 members

Glad to see some other dudes than root doing synced resources, beast work

  • Like 2
smepti

   1 of 2 members found this review helpful 1 / 2 members

Great time saver :)

Think, that better will be to do on client something like

if (!entity.getVariable("__componentSync")) {
    return;
}

Because variable can be undefined, if server did not have time to initialize it

I had such error

XCRON

   0 of 1 member found this review helpful 0 / 1 member

Nice, thanks for this awesome release!

  • Like 1
×
×
  • Create New...