Hey guys, i want to make a code with pickups, but doesnt do anything... I tried whit all of theese codes but doesnt works... :(( Help me plz
function pickedUpWeaponCheck( player )
if root == 1240 then
outputChatBox( "Megtosztad!", player )
end
end
addEventHandler( "onPickupUse", root, pickedUpWeaponCheck )
function onPickupUse ( player )
local currenttype = getPickupType ( root )
if currenttype == 1240 then
outputChatBox( "Megtosztad!" ..currenttype, player )
end
end
addEventHandler( "onPickupUse", root, pickedUpWeaponCheck )
local money = createPickup (1896.4000244141, -1950.9000244141, 13, 3, 1274, 10000 )
function pickupUse ( player )
outputChatBox( "Megtosztad!")
end
addEventHandler ( "onPickupHit", money, pickupUse )