Jump to content

Pickup problem


Drakath

Recommended Posts

You need to define the pick up and then trigger the hit or leave with an event:

function asd () 
local x, y, z = getElementPosition(localPlayer) 
local element = createPickup(x+2, y+2, z, 0, 20) 
addEventHandler("onClientPickupHit", element, function () 
--your stuff here 
end) 
end 
asd() 
  

It works both client and server side (onClientPickupHit or OnPickupHit)

Sorry for indent, TAB doesnt work

https://wiki.multitheftauto.com/wiki/OnClientPickupHit

Edited by Guest
Link to comment

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