I tried the search but all the threads I found were made prior to this update. I’m assuming with the new update the problem those threads were complaining about doesn’t exist anymore?
I have almost no experience with LUA other than making some tweaks/customizations to others’ code. Could someone tell me how I’d go about setting all players skills at server start/player login? Basically want to have everyone’s skills maxed at all times, even after they’ve changed their ped model using Mello Trainer.
Someone DM’d me asking what I’m currently using so I’m just going to post it here in case it helps anyone else.
client.lua:
local a = {
'MP0_STAMINA',
'MP0_STRENGTH',
'MP0_LUNG_CAPACITY',
'MP0_WHEELIE_ABILITY',
'MP0_FLYING_ABILITY',
'MP0_SHOOTING_ABILITY',
'MP0_STEALTH_ABILITY'
}
for _, s in ipairs(a) do
StatSetInt(s, 100, true)
end
Note that the above does not grant max health. It maxes out all players stamina, strength, lung capacity, flying skill, shooting skill, stealth skill and I believe their skill at doing wheelies.