tweak(cfx/nui): Introduce ServerReviewsEnabled convar#2985
tweak(cfx/nui): Introduce ServerReviewsEnabled convar#2985Lorenc95 wants to merge 1 commit intocitizenfx:masterfrom
Conversation
Add convar for ServerReviewsEnabled (Boolean) true/false to enable or disable reviews.
|
You Should try make it consistent using underscores and perhaps starting with sv* |
Not all convars start with sv_, though i get the point, thing is, this is up to the elements to get merged; i just presented them with an example! |
|
I think it'd be neat to see a convar to set a playtime needed on the server to be able to review, I think the launcher already tracks user playtime somewhere. Maybe even like a forum account age thing, I'm unsure what data the server has access to. The review system is really useful but bots and inaccurate reviews can plague it and ultimately make it pointless. |
|
guessing this can be closed since server reviews were removed? |
|
Server reviews have been removed, closing. |
Add convar for ServerReviewsEnabled (Boolean) true/false to enable or disable reviews.
Goal of this PR
Allows server owners to set a convar
ServerReviewsEnabledto either true or false (default to true).This will then allow/deny from new reviews being posted/submitted.
...
How is this PR achieving the goal
By introducing a new convar ServerReviewsEnabled, if set to true it will allow new reviews, if set to false it will not allow these to be submitted.
...
This PR applies to the following area(s)
FiveM
...
Successfully tested on
Successfull compilation on local build.
Game builds: ..
Platforms: Windows
Checklist
Fixes issues
#2979 - Will be fixed by not hardlocking it, but rather allowing server owners themselves to decide.