Jump to content

Recommended Posts

belehi dima tgoli expected element at argument 1(destroyElement)w sa3at el debug mayektebli chay .wa9t el car tmes myMarker lezem el car tetfsa5. Thanks

ServerSide:

 local myMarker = createMarker(x,y,z,type,size,r,g,b) 
function createCar() 
local car = createVehicle(ID,x,y,z) 
addEventHandler("onMarkerHit",myMarker,lol) 
end 
addEvent("someEvent",true) 
addEvent("someEvent",root,createCar) 
function lol(hitElement) 
if (getElementModel(hitElement) == 522) then 
destroyElement(car) 
end 
end 
  

Link to comment
local myMarker = createMarker(x,y,z,type,size,r,g,b) 
function createCar() 
car = createVehicle(ID,x,y,z) 
addEventHandler("onMarkerHit",myMarker,lol) 
end 
addEvent("someEvent",true) 
addEvent("someEvent",root,createCar) 
function lol(hitElement) 
if (getElementModel(hitElement) == 522) then 
destroyElement(car) 
end 
end 
  

matesta3melech local variable fi functions o5ra.

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