Skip to content

Conversation

Kr3mu
Copy link
Member

@Kr3mu Kr3mu commented Aug 29, 2025

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

  • [-] My commit messages and PR title follow the Conventional Commits standard.
  • [-] My changes have been tested locally and function as expected.
  • [-] My PR does not introduce any breaking changes.
  • [-] I have provided a clear explanation of what my PR does, including the reasoning behind the changes and any relevant context.

@N0tNvll N0tNvll self-requested a review August 30, 2025 18:41

function Adjustments:WeakerWoman()
if Config.WeakerWoman then
AddEventHandler("esx:PlayerLoaded",function (_, skin)
Copy link
Contributor

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
Copy link
Contributor

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()
Copy link
Contributor

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 = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Config.Multipliers

@Kr3mu Kr3mu changed the title feat(es_extended) Adds adjustment to lower woman player strength feat(es_extended) Adds adjustment to lower woman and man player strength Aug 30, 2025
@Kenshiin13 Kenshiin13 marked this pull request as draft August 31, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants