zDxvilZ Posted June 26, 2023 Posted June 26, 2023 yooo, is there a client function where you can disable climbing on ladders? And one more to adjust weapon damage?
Kopra Posted June 26, 2023 Posted June 26, 2023 You can use these. Player::isOnLadder - RAGE Multiplayer Wiki Player::setWeaponDamageModifier - RAGE Multiplayer Wiki For weapon damage I recommend using modding to change damage values.
zDxvilZ Posted June 29, 2023 Author Posted June 29, 2023 Thank you, but the Weapondamage function only ever gives an error. How can I use the modding method to customize weapon damage?
Kopra Posted June 29, 2023 Posted June 29, 2023 First function is part of server side API, second function is part of client side API. Showing error would also help us help you. For more info about modding GTA 5 I suggest doing your own research using google. There is already a lot of tutorials around for those things. Only thing that is different is that you do not mod your original game files, but you create a dlc.rpf archive and place it in your client_packages/game_resources/dlcpacks.
zDxvilZ Posted June 30, 2023 Author Posted June 30, 2023 Thank you, the error is the following: ... .setWeaponDamageModifier() is not a function.
Kopra Posted June 30, 2023 Posted June 30, 2023 Are you sure you are calling it clientside? Try with mp.game.player. Also I think it needs to go in render because it needs to be applied every frame, but I am not sure about that one. Pasteboard - Uploaded Image
zDxvilZ Posted June 30, 2023 Author Posted June 30, 2023 It works! Thank you. This function must be in the render. 1
farhan Posted February 4, 2024 Posted February 4, 2024 Hello, I have a problem. I want to reduce the amount of gun damage to the player, but it doesn’t work This example is correct mp.events.add('incomingDamage', (sourceEntity, sourcePlayer, targetEntity, weapon, boneIndex, damage) => { if (damage > 0) { if (weapon == weapon_unarmed) { mp.player.setWeaponDamageModifier(5); mp.player.weapon.setCurrentDamageEventCritical(false); } } });
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now