جرب ذا
Server #
markerpv = createMarker( 1591.1999511719, -1710.1999511719, 4.9000000953674, "cylinder", 2, 0, 0, 255, 255 )
local vehicles = {}
function spawnVehp(id)
local x, y, z = getElementPosition(source)
if isElement(vehicles[source]) then destroyElement(vehicles[source]) end
vehicles[source] = createVehicle(487, 1568.9465332031 + 411, -1626.2987060547, 13.3828125)
warpPedIntoVehicle(source, vehicles[source])
end
addEvent("CreVehicePv",true)
addEventHandler("CreVehicePv", root, spawnVehp)
addEventHandler("onPlayerQuit", root,
function()
if isElement(vehicles[source]) then
destroyElement(vehicles[source])
vehicles[source] = nil
end
end)
function showGUIpv(hitPlayer)
if hitPlayer and getElementType(hitPlayer) == "player" then
if ( getElementData(hitPlayer, "Group" ) == "اسم القروب" ) then
triggerClientEvent (hitPlayer,"showGUIpv",getRootElement(),hitPlayer)
else
end
end
end
addEventHandler("onMarkerHit",markerpv,showGUIpv)