Jump to content

Pickup hit and Pickup use not works :((


Recommended Posts

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 pickedUpWeaponCheckplayer )
    if root == 1240 then
        outputChatBox"Megtosztad!"player ) 
    end
end
addEventHandler"onPickupUse"rootpickedUpWeaponCheck )
 
function onPickupUse ( player )                          
    local currenttype = getPickupType ( root )  
    if currenttype == 1240 then
        outputChatBox"Megtosztad!" ..currenttypeplayer )
    end
end
addEventHandler"onPickupUse"rootpickedUpWeaponCheck )
 
local money = createPickup (1896.4000244141-1950.9000244141133127410000 )
function pickupUse ( player )
    outputChatBox"Megtosztad!")
end
addEventHandler ( "onPickupHit"moneypickupUse )
Edited by ThePrime
Link to post
  • Moderators

This should work on server side(!).

local money = createPickup (1896.4000244141, -1950.9000244141, 13, 3, 1274, 10000 )
function pickupUse ( player )
    outputChatBox( "Megtosztad!")
end
addEventHandler ( "onPickupHit", money, pickupUse )

 

Link to post
5 minutes ago, Patrick said:

This should work on server side(!).


local money = createPickup (1896.4000244141, -1950.9000244141, 13, 3, 1274, 10000 )
function pickupUse ( player )
    outputChatBox( "Megtosztad!")
end
addEventHandler ( "onPickupHit", money, pickupUse )

 

Koszi, de latom magyar vagy :)) Orulok h magyarok is vannak erre xd :))

 

  • Like 1
Link to post

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