Public feed
#887666
function teleport_Wangs(source, cmd)
local vehicle = getPlayerOccupiedVehicle(source)
if vehicle then
local rx, ry, rz = getVehicleRotation(vehicle)
setCameraMode(source, "fixed")
setElementVelocity(vehicle, 0, 0, 0)
setVehicleRotation(vehicle, rx, ry, 180.0)
setElementPosition(vehicle, -1914.9218, 289.8815, 48.0000) -- Wang Cars
setTimer(setCameraMode, 200, 1, source, "player")
else
setElementPosition(source, -1914.9218, 289.8815, 43.3773) -- Wang Cars
end
end
addCommandHandler("wangs", teleport_Wangs)