ThePrime 1 Posted January 14 Share Posted January 14 (edited) 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 ) Edited January 14 by ThePrime Link to post
Moderators Patrick 337 Posted January 14 Moderators Share Posted January 14 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
ThePrime 1 Posted January 14 Author Share Posted January 14 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 :)) 1 Link to post
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now