ViniGuzela Posted October 18, 2019 Share Posted October 18, 2019 estou querendo colocar uns 10 lugares diferentes para spawnar o carro addEvent("WarpMyVehicle", true) addEventHandler("WarpMyVehicle", root, function(id) if not isPedInVehicle (source) then if getElementInterior(source) == 0 then if getPlayerMoney(source) >= tonumber(3500) then local vehicle = getVehicleByID(id) if isElement(vehicle) then takePlayerMoney ( source, 3500 ) local x, y, z = getElementPosition(source) setElementPosition(vehicle, 1649.334, -1079.972, 23.898) outputMessage ("#c1c1c1O seu veiculo #00FF66"..(customCarNames[getElementModel(vehicle)] or getVehicleNameFromModel(getElementModel(vehicle))).." #c1c1c1foi entregue a você.", source, 38, 122, 216, true) else outputMessage("#c1c1c1O seu veiculo não está spawnado.", source, 38, 122, 216, true) end else outputMessage("#c1c1c1Você não tem os meios de se teletransportar para o veiculo.", source, 38, 122, 216, true) end else outputMessage("#c1c1c1Você só poderá mudar de veiculo se sair do atual.", source, 38, 122, 216, true) end else outputMessage("#c1c1c1Nós não podemos dirigir seu veiculo. Por favor, sair do outro veiculo.", source, 38, 122, 216, true) end end) Link to comment
Addlibs Posted October 18, 2019 Share Posted October 18, 2019 Why do people keep posting topics in other languages when they can see everything else in the section is in English? Ugh. Try here https://forum.multitheftauto.com/forum/97-portuguese-português/ Link to comment
DNL291 Posted October 18, 2019 Share Posted October 18, 2019 Crie uma tabela com todos locais e indexe a tabela para obter a posição. @ViniGuzela Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now