Add armor to player from using drugs

Hello guys, so basically i anyone can help me i would appreciate any information. So i wanna make like when someone use weed on ESX mode, can get like 25% of armor per one weed item. Is there any idea how can i make this possible ? Thanks to everyone who wanna help !

SetPedArmour(Ped ped, int amount)

Thank you alot i appreciate the help !!

@Miss_Behavin Do you maybe know also how would i add stamina. For example when someone use some drug he gets like stamina run boost for 20 seconds… If you can give me some directions it would be great.

You could use https://runtime.fivem.net/doc/reference.html#_0xA352C1B864CAFD33

@Briglair Thank you man !

@nax0r you have managed to do it? can you share?

where i but this help plz

SetPedArmour(playerPed, 100) where do i need to put this?
1 Like

local playerped = GetPlayerPed(-1)
SetPedArmour(playerped , 100)

Put this in a client sided script.