@#MohammeD
ما يصير تستعمل
getElementData
بدون ما تحط داتا اصلا
وسوي مثل ما قالك الاخ تريفور
Marker = createMarker(1623.4199,-2527.4304,14,"corona",3.5,0,0,225)
local Group = '[Test]'
setElementData (getRandomPlayer(),'Group',Group)
addEventHandler ( 'onMarkerHit' , root ,function ( Player )
if ( source == Marker and getElementType ( Player ) == "vehicle" ) then
local controller = ( getVehicleController ( Player ) )
if ( controller and getElementData ( controller , "Group" ) == Group ) then
setElementPosition( Player,1680.3492,-2484.6853,14)
setElementInterior ( Player, 0 )
setElementDimension ( Player, 0 )
end
end
end)