feat(es_extended) Adds adjustment to lower woman and man player strength#1714
Closed
Kr3mu wants to merge 3 commits intoesx-framework:devfrom
Closed
feat(es_extended) Adds adjustment to lower woman and man player strength#1714Kr3mu wants to merge 3 commits intoesx-framework:devfrom
Kr3mu wants to merge 3 commits intoesx-framework:devfrom
Conversation
N0tNvll
approved these changes
Aug 30, 2025
Kenshiin13
requested changes
Aug 30, 2025
|
|
||
| function Adjustments:WeakerWoman() | ||
| if Config.WeakerWoman then | ||
| AddEventHandler("esx:PlayerLoaded",function (_, skin) |
Contributor
There was a problem hiding this comment.
The event is called esx:playerLoaded. This is also a net event.
| return -- Early Exit | ||
| end | ||
|
|
||
| if skin.sex ~= 1 then |
Contributor
There was a problem hiding this comment.
Add support & cfg for male & female
| self:WantedLevel() | ||
| self:DisableRadio() | ||
| self:Multipliers() | ||
| self:WeakerWoman() |
Contributor
There was a problem hiding this comment.
Please don't call it that, lol. Just use Adjustments:Multipliers()
| -- stamina = float, | ||
| -- strength = float | ||
| -- } | ||
| Config.WeakerWoman = { |
Contributor
|
@Kenshiin13 @Kr3mu what is about this? is finished, discarded or in what status is actually? |
Member
Author
We agreed that the idea is good to add limitation but for everyone, but the code needs to be checked or remade don't remember |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
It sets by listening to PlayerLoaded and onPlayerLogout event and using SetWeaponDamageModifier and SetPlayerStamina a lower strength of the player.
Motivation
This change isn't neccessary but is a good feature for Hard RP servers.
DISCLAIMER:
This script applies different stamina/strength settings based on the player's in-game gender.
It is purely a GAMEPLAY MECHANIC for balancing or roleplay purposes, not a statement about real-life gender.
The values and labels here should not be interpreted outside of the context of the game.
If you use or modify this code, please ensure it is respectful of your community’s preferences.
PR Checklist