❗ Equipment code

Posts 1–3 of 3 · Page 1 of 1
❗ Equipment code
Ok, so I'm working on a new mod and i use this code :

self maps\mp\perks\_perks::givePerk( "frag_mp" );self setWeaponAmmoClip("frag_mp", 1);

to set the equipment as a frag grenade and it works fine. But when i try : claymore_mp, c4_mp, ... other equipment it won't work!
I did put them in the usable weapons like this : case "claymore_mp":

Pls help and give me the right code, cuz i have no idea.
Maybe this might work?

Code:
self maps\mp\perks\_perks::givePerk( "frag_grenade_mp" );
self maps\mp\perks\_perks::givePerk( "c4_mp" );
self maps\mp\perks\_perks::givePerk( "claymore_mp" );
Oh and btw, you can only use self maps\mp\perks\_perks::givePerk to give equipment and perks and not weapons
Ye i know it's only for equipment but for some reason It only works with a frag...
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us