Jump to content

Why is there no "onPickupLeave" in Wiki?


Recommended Posts

I did try once this

  
local wangcarspickup1 = createPickup (-1949.04004, 273.31299, 35.187, 3, 1239, 0)       --faggio 
local wangcarspickupcol1 = getElementColShape (wangcarspickup1) 
local wangcarspickup2 = createPickup (-1958.81104, 300.50101, 35.187, 3, 1239, 0)       --tampa 
local wangcarspickupcol2 = getElementColShape (wangcarspickup2) 
local wangcarspickup3 = createPickup (-1957.479, 297.42899, 35.187, 3, 1239, 0)         --huntley 
local wangcarspickupcol3 = getElementColShape (wangcarspickup3) 
local wangcarspickup4 = createPickup (-1956.50903, 294.133, 35.187, 3, 1239, 0)         --comet 
local wangcarspickupcol4 = getElementColShape (wangcarspickup4) 
local wangcarspickup5 = createPickup (-1955.90503, 290.896, 35.187, 3, 1239, 0)         --windsor 
local wangcarspickupcol5 = getElementColShape (wangcarspickup5) 
  
  
local wangcarscols = { 
[wangcarspickupcol1]=true, 
[wangcarspickupcol2]=true, 
[wangcarspickupcol3]=true, 
[wangcarspickupcol4]=true, 
[wangcarspickupcol5]=true, 
} 
  
function onWangCarsColLeave (player, dim) 
if (dim == true) and (getElementType(player)=="player") and (wangcarscols[source]) then 
outputChatBox ("bam") 
end 
end 
addEventHandler ("onColShapeLeave", root, onWangCarsColLeave) 

no error nothing :(

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