xXGhostXx Posted September 8, 2018 Share Posted September 8, 2018 Hi guys . How do you set player all weapons skill to 1000 ? Link to comment
Mr.Loki Posted September 8, 2018 Share Posted September 8, 2018 https://wiki.multitheftauto.com/wiki/SetPedStat Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 2 minutes ago, Mr.Loki said: https://wiki.multitheftauto.com/wiki/SetPedStat Event handler : onPlayerJoin ? Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 (edited) just this setPedStat(thePlayer, stat, 1000) ? Edited September 8, 2018 by xXGhostXx Link to comment
iMr.WiFi..! Posted September 8, 2018 Share Posted September 8, 2018 (edited) Try with those: "onPlayerJoin" setPedStat Edited September 8, 2018 by iMr.WiFi..! Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 8 minutes ago, iMr.WiFi..! said: Try with those: "onPlayerJoin" setPedStat addEventHandler('onPlayerJoin', root, function () setPedStat(thePlayer, stat, 1000) end) What is problem ? Link to comment
iMr.WiFi..! Posted September 8, 2018 Share Posted September 8, 2018 addEventHandler('onPlayerJoin', root, function () setPedStat(source, 78, 1000) -- 78 is just example. end) Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 1 minute ago, iMr.WiFi..! said: addEventHandler('onPlayerJoin', root, function () setPedStat(source, 78, 1000) -- 78 is just example. end) how set all weapons ? Link to comment
Mr.Loki Posted September 8, 2018 Share Posted September 8, 2018 the example on the page shows you how Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 for _, stat in ipairs({ 24, 69, 70, 71, 72, 73, 74, 76, 77, 78, 79 }) do setPedStat(source, stat, 1000) this is my code not work please answer me Link to comment
iMr.WiFi..! Posted September 8, 2018 Share Posted September 8, 2018 it will work if you try harder. addEventHandler('onPlayerJoin', root, function () for _, stat in ipairs({ 24, 69, 70, 71, 72, 73, 74, 76, 77, 78, 79 }) do setPedStat(source, stat, 1000) end end) Link to comment
Rockyz Posted September 8, 2018 Share Posted September 8, 2018 35 minutes ago, iMr.WiFi..! said: it will work if you try harder. addEventHandler('onPlayerJoin', root, function () for _, stat in ipairs({ 24, 69, 70, 71, 72, 73, 74, 76, 77, 78, 79 }) do setPedStat(source, stat, 1000) end end) You should use 'onPlayerSpawn' instead of using 'onPlayerJoin' 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