I make flare with item, then if you buy the flare, drop in to the floor then if you claim and press inventory then The name of flare has been change like this HP [250] and [Turbo Speed] then when equip HP [250] then set health then if equip [Turbo Speed] then set speed 200...
I have error of this script! when i open my console nothing errors appears, but no Hooks on console...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ITEMs = { [1] = {equip="54",speed="250"}, } ITEMs[1].func = function(id,speed) parse("equip '..id..' '..equip..'") parse("speedmod '..id..' '..speed..'") end addhook("spawn","staff_spawn") function staff_spawn(id,item) parse('spawnitem '..equip..' '..player(id,'tilex')..' '..player(id,'tiley')) end
I hope you help me
Thank you