1. Udeláme client.lua a vložíme do neho:Code:
marker = createMarker( X, Y, Z, "Type", Size, R, G, B, A) Informace o markeru. XYZ - Pozice kde se ma marker nachádzet,Type - Typ markeru, treba corona. Size - velikost, RGB - Barvy v red green blue, A-alpha (zaklad je 255)
function teleport (player)
if source == marker then
if isPedInVehicle(player) then
local vehicle=getPedOccupiedVehicle(player)
setElementPosition(vehicle, X, Y, Z) - pozice kam nás ma marker portnout.
setVehicleFrozen(vehicle, true)
setTimer(setVehicleFrozen, 1000, 1, vehicle, false)
end
end
end
addEventHandler("onClientMarkerHit", getRootElement(), teleport)
pak tohle dáme do mety v mape:
Code:
<script src="client.lua" type="client"></script>
vše:3
-UN!T