Jump to content

Weapon Skills


xXGhostXx

Recommended Posts

Posted
8 minutes ago, iMr.WiFi..! said:

Try with those:


"onPlayerJoin"
setPedStat
addEventHandler('onPlayerJoin', root, function ()
  setPedStat(thePlayer, stat, 1000)
end)

What is problem ?

Posted
1 minute ago, iMr.WiFi..! said:

addEventHandler('onPlayerJoin', root, function ()
  setPedStat(source, 78, 1000) -- 78 is just example.
end)

 

how set all weapons ?

Posted

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)

 

Posted
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'

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...