Coloque o código abaixo em servidor:
local spawn = createMarker(0, 0, 0, "cylinder", 1, 255, 255, 255, 255)
addEventHandler("onMarkerHit", spawn, function(element)
if getElementType(element) == "player" then
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(element)), aclGetGroup("SAMU")) then
if getPedOccupiedVehicle(element) == false then
local x, y, z = getElementPosition(element)
local v = createVehicle(551, x, y, z)
warpPedIntoVehicle(element, v)
end
end
end
end)
addEventHandler("onMarkerHit", spawn, function(element)
if getElementType(element) == "player" then
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(element)), aclGetGroup("PM")) then
if getPedOccupiedVehicle(element) == false then
local x, y, z = getElementPosition(element)
local v = createVehicle(551, x, y, z)
warpPedIntoVehicle(element, v)
end
end
end
end)