Ai não consegui mas vou postar o code aqui pra dar uma olhada:
function darCarro (player)
outputChatBox("#FFA500[Detran]:#FFFFFFVocê pegou carro do Detran", player, 255, 255, 255, true)
if veh and isElement(veh) then destroyElement(veh)
veh = nil
end
veh = createVehicle(578, 1547.663, -2303.496, 13.545,-0, 0, 1.548)
warpPedIntoVehicle(player, veh, 0)
end
addEventHandler("onPickupHit", carro, darCarro)
local viatura = {}
function salvar_Carro (vehicle, seat, jacked)
viatura[source] = vehicle
end
addEventHandler('onPlayerVehicleEnter', getRootElement(), salvar_Carro)
function guinVeh ( command )
local x, y, z = getElementPosition ( veh )
attachElements ( viatura[source], veh, 0, -1, 1 )
end
addCommandHandler ( "guinchar", guinVeh )