Jump to content

Weapon Skills


xXGhostXx

Recommended Posts

Posted (edited)

Try with those:

"onPlayerJoin"
setPedStat
Edited by iMr.WiFi..!

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

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
addEventHandler('onPlayerJoin', root, function ()
  setPedStat(source, 78, 1000) -- 78 is just example.
end)

 

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

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)

 

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

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...