so how would he use it? I did not understand very well, I'm slow.
local inimarker = createMarker (2102.8264160156, -1788.5377197266, 12.5546875, "cylinder", 1.5, 255, 0, 0)
local marker1 = createMarker (2067.9577636719, -1731.6177978516, 12.87615776062, "cylinder", 1.5, 255, 0, 0, 255, resourceRoot)
local inicio = createBlipAttachedTo(inimarker, 42)
local blip1 = createBlipAttachedTo( marker1, 41, 2, 255, 0, 0, 255, 0, 16383, resourceRoot )
local vehjob = {}
function inicio(player)
if getElementType(player) ~= "player" then return end
if vehjob[player] and isElement(vehjob[player]) then destroyElement(vehjob[player])
vehjob[player] = nil
end
vehjob[player] = createVehicle(462, 2107.9953613281, -1781.9140625, 13.388528823853)
outputChatBox("#FF0000Você Aceitou O Emprego De Entregador De Pizza!", player, 255,255,255,true)
outputChatBox("#FF0000Entregue As Pizzas Nos Locais Marcados Em Seu GPS!", player, 255,255,255,true)
outputChatBox("#FF0000Para Cancelar Seu Emprego Digite /cancelar!", player, 255,255,255,true)
createPed (297, 2067.1535644531,-1731.5858154297, 14.206628799438, 268.24844360352)
warpPedIntoVehicle(player, vehjob[player])
setElementVisibleTo(marker1, player, true)
setElementVisibleTo(blip1, player, true)
end
addEventHandler("onMarkerHit", inimarker, inicio)
function inicio2(player)
outputChatBox("#FF0000Teste", player, 255,255,255,true,)
end
addEventHandler("onMarkerHit", marker1, inicio2)