-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Server Setters; RPC are broken #2787
Comments
I think it is a very good idea, I have had experience when creating scripts that needed to modify the modifications of a vehicle from the server side, I have always had to assign to a client the need to assign these modifications, with this proposal I think it can solve many problems of this style and not depend so much on the clients. |
I currently have a race server, and that would be a game changer for us, we have so much tricky code and have to do callback from the client, server functions would be awesome |
Like a lot of developper, i had do a customisation script for vehicle, and the dream of all developper are do this is possibility to put this in server side |
Hi, Couldn't agree more. It's clearly a must-have, not a nice to have. |
Yes it's a good idea, we need this since a long time ago, like also for the blips ( SetColourBlip, Scale etc...) |
We need this !! |
Excellent idea, we need more control over clients 👏 |
👍🏻 Needed those many times for years ! |
👍🏻 Good idea we need this !!!! |
I completely agree with this, and it’s essential that we implement it to maintain control over the players. 👏 |
This would be very sick! It would be very helpful to be able to set various stuff server-sided, including the ability to completely manage entities on the server. It's currently very annoying, in my case I'm spawning vehicles serversided and to apply vehicle properties, I need to have a client to do that, which is kind of annoying. |
Nice idea ! <3 |
It's a realy good idea can had lot of control ! we need this ! |
This is definitely needed! It would give serverside more control, which is great for a lot of reasons - especially when it comes to dealing with cheaters. |
This is a great idea |
This feature is one of the most needed and requested features that FiveM can offer. |
I approve of this wonderful idea! 👍 |
Yes, an excellent idea and nothing but the Simplification of the code I approve |
Oh yes, that would be amazing! |
It would be very useful to fully handle entity creation on the server side. Hoping for the proper implementation. 👍 |
This possibility would be incredible. Relying on the client for basic tasks complicates development. Server-side control would simplify scripts (no need to navigate client -> server several times for nothing) and eliminate unnecessary callbacks, for example. |
This is needed for years and was issued by blattersturm through #960, i don't know why so many reactions here but that's nice to see we are not a minority requesting it, we don't want a lot but mainly natives that are top priority like I believe that scripting should be really easy and that means that scripters should not have to think about how to handle entity syncing too much, adding server-setters natives will help this. While i'm at it please take a look at #962 and #836 because these are also must haves for a more server authoritative networking design. |
Great idea! Implementing Server Setters across all entity types, not just vehicles and NPCs, would significantly improve server stability and control. This would reduce reliance on unstable RPC natives, clean up code, and enhance synchronization across clients. Expanding the setter options would also improve server authority over objects, blips, and player properties, making things more reliable and efficient. Looking forward to this! |
you realize this is just an issue right not a pull request? |
And so I can't look forward to something actually useful being (hope so) implemented? |
I mean sure go for it, but you're going to be waiting months |
Then we will be waiting for months |
Good idea ☑️👍🏼 |
My server currently uses client-side vehicles, since server vehicles are broken at the moment. The development of a reliable server API for vehicles is needed, along with server setters. I'm looking forward to this. |
This is definitely needed! I hope these get implemented soon! |
Excellent idea, it improves control and security. I take this example mentioned by @Dolyyyy : "(no need to navigate client -> server several times for nothing) and eliminate unnecessary callbacks, for example." |
Nice idea 👍 |
currently it is implemented like that because entities does not exists on the server side in the way they exists on the clients this all sounds good but it wasn't implemented yet for its own reason and not because they just didn't wanted to make peoples life and scripting easier, this will require a lot of planning |
I'm creating mission scripts just like in gta online and i'm waiting for this, on SAMP things were easier :) |
Nice idea bro👍 |
Well thank god you and the 30 other muppets posted "good idea!!!". Really contributing to the discussion there champ. |
Nice idea 👍 |
Thanks for the valuable input, we didn't see the first 30 replies from mindless drones flocking here |
This comment was marked as outdated.
This comment was marked as outdated.
I'm not going to bother arguing with you... I didn't know Deepl's translation made it sound so “CHATGPT” 🤷♂️. Honestly, stop making fabrications based on nonsense... I've simply repeated what I understood and added my own words. If you don't like it, I can make a shorter reply. |
would love to see this happening |
Feature Request: Server Setters for Authority and Stability
Background
For a considerable time, many developers have been requesting Server Setters as an alternative to RPC natives. It's widely acknowledged in the FiveM community that RPC natives are often unstable or broken.
@prikolium-cfx mentioned the reliability issues of RPC natives in this pull request.
Current Issues
Unreliability of RPC Natives:
SetPedConfigFlag
and vehicle RPC natives frequently require workarounds. (when they work)Lack of Server Authority:
Code Cleanliness:
Proposed Solution
Implement a comprehensive set of Server Setters to complement existing server-side functions.
Current Server-Side Functions
CreateVehicleServerSetter
CreatePed
CreateObjectNoOffset
While these are beneficial, they are insufficient for a robust server API.
Requested Server Setters
Please note that this list is not exhaustive and is intended to provide examples of the types of setters that would be useful:
Entity Setters
SetEntityHeading
SetEntityCoords
SetEntityRotation
SetEntityVelocity
Vehicle Setters
SetVehicleNumberPlateText
SetVehicleDoorsLocked
Vehicle Modification Setters
GetVehicleMod
GetVehicleModKit
GetVehicleModKitType
GetVehicleModVariation
SetVehicleMod
SetVehicleModKit
Benefits
Server Authority:
Improved Stability:
Cleaner Code:
Better Synchronization:
Use Cases
Vehicle Management:
NPC Behavior Control:
Anti-Cheat Measures:
Manipulating multiple entities :
Expected result
Server setters
Reproduction steps
Importancy
There's a workaround
Area(s)
FiveM, FXServer, OneSync, Natives
Specific version(s)
Every version
Additional information
No response
The text was updated successfully, but these errors were encountered: