Jump to content

Help with correct referral.


Mature

Recommended Posts

Hello community, I am creating a customization system by Shaders, where the player creates his modification on the client and, after finishing the modification, each element he selects has a certain "ID" created by me, I want to make the script flow in the best way. . possible, and could someone give me a tip on how to send this information to the server to distribute to everyone and return to the client of all players? Here is a brief syntax:

Client: 
(Note: The element has already been set correctly in the model, everything is correct and I will summarize using the ID's already!)

Tshirt = 3 -- These are the ID's that are set in the script.
Pants  = 10

triggerServerEvent("Script:ServerDs", localPlayer, localPlayer, Tshirt, Paint) -- That would be the way to send the server that I would do most not think correct.

Ok, after uploading to the server and distributing it, I may even return to the client to add the fixed Shader to the player, but the way I have in mind doesn't seem to be the safest thing to do, I want to improve it as much as possible. and I would like someone to help me with the right indication.

Also, the script would basically add something to CJ's face, I used a t-shirt and pants as an example.

In conclusion: I just want that after the modification, make the distribution to the server with the IDs, after the distribution returns to the client of all players to make the modification visible.

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