@Raxzen Que tal, modifique tu codigo del serverside, el codigo no esta probado.
--serverside
local vehiculos = {}
function generar_auto(vehiculo,posx,posy,posz,player)
if vehiculo and posx and posy and posz then
if not vehiculos[player] or not isElement(vehiculos[player]) then
vehiculos[player] = createVehicle(vehiculo,posx,posy,posz)
outputChatBox("Auto creado",source)
else
outputChatBox("Ya tienes un auto", source)
end
end
end
addEventHandler("onPlayerQuit", getRootElement(), function()
if vehiculos[player] and isElement(vehiculos[player]) then
destroyElement(vehiculos[player])
vehiculos[player] = nil
end
end)