TheCapn Posted May 16, 2014 Share Posted May 16, 2014 Hello, I'm facing an issue. I try to change the desert eagle damage, with this code function setWeaponStat( player, command ) setWeaponProperty(24, "poor", "damage", 100) setWeaponProperty(24, "std", "damage", 100) setWeaponProperty(24, "pro", "damage", 100) end addEventHandler( "onResourceStart", resourceRoot, setWeaponStat ) And currently it's not working in-game, the damages aren't changed. Do you know where the issue could come from ? Regards, Link to comment
Castillo Posted May 17, 2014 Share Posted May 17, 2014 Did you set the script as server side in the meta.xml? do you get any errors in the debugscript ( /debugscript 3 )? Link to comment
TheCapn Posted May 17, 2014 Author Share Posted May 17, 2014 In fact it's working now but I really don't know how the damage are working. Because when I set at poor level the damage of the desert eagle to 70 (original damages), the ped only loose 23 hp ... Do you know how the calculation is done ? Link to comment
WASSIm. Posted May 17, 2014 Share Posted May 17, 2014 function setWeaponStat( ) for _, skill in ipairs({"poor", "std", "pro"}) do setWeaponProperty(24, skill, "damage", 100) end end addEventHandler( "onResourceStart", resourceRoot, setWeaponStat ) Link to comment
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