-
-
Notifications
You must be signed in to change notification settings - Fork 787
feat(es_extended) Adds adjustment to lower woman and man player strength #1714
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
base: dev
Are you sure you want to change the base?
Conversation
|
||
function Adjustments:WeakerWoman() | ||
if Config.WeakerWoman then | ||
AddEventHandler("esx:PlayerLoaded",function (_, skin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The event is called esx:playerLoaded
. This is also a net event.
return -- Early Exit | ||
end | ||
|
||
if skin.sex ~= 1 then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add support & cfg for male & female
self:WantedLevel() | ||
self:DisableRadio() | ||
self:Multipliers() | ||
self:WeakerWoman() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't call it that, lol. Just use Adjustments:Multipliers()
-- stamina = float, | ||
-- strength = float | ||
-- } | ||
Config.WeakerWoman = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Config.Multipliers
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