ThePrime Posted January 14, 2021 Share Posted January 14, 2021 (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, 2021 by ThePrime Link to comment
Moderators Patrick Posted January 14, 2021 Moderators Share Posted January 14, 2021 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 comment
ThePrime Posted January 14, 2021 Author Share Posted January 14, 2021 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 comment
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