Galera e assim eu quer fazer um trab de pizza boy ja tenho a base do emprego! mais eu quero fazer um tabela, para que aparece um monte de checkpoints no mapa e cada checkpoint ser depositado um quantia de dinheiro na conta do Jogar mais não sei como vou fazer isso :C ajudem eu não sei mecher com tabela ainda e não sei como posso iniciar uma (sou leigo!)
Minicio = createMarker (1607.2584228516, -2433.2316894531, 13.5546875 -1, "cylinder", 2, 255 ,0 ,0, 255) -- Pegar Trabalho
Mfim = createMarker ( 1683.810546875, -2434.3625488281, 13.5546875 -1, "cylinder", 2, 0 ,255 ,0, 255)
Bfim = createBlipAttachedTo ( Mfim, 19 ) -- Blip do Final do Trabalho
setElementVisibleTo ( Bfim, root, false )
veh = {}
function incio (source) -- Função onde o trbalaho acontece (Spawn Carros e Msg)
if isElementWithinMarker(source, Minicio) then
if veh[source] and isElement( veh[source] ) then destroyElement ( veh[source] )
veh[source] = nil
end
x,y,z = getElementPosition(source)
Trabalho = true
veh[source] = createVehicle(448,1626.8132324219, -2436.1630859375, 13.5546875) -- Onde o Veiculo vai ser spawnado
setPedSkin ( source, 280 ) -- Skin do trabalho
setElementVisibleTo ( Bfim, source, true )
warpPedIntoVehicle ( source, veh[source] )
outputChatBox ("#00ff00======================================================",source,0,0,0,true )
outputChatBox ("#ffff00Leve Veiculo Ate o Blip De Uma Bandeira Vermelha No Seu Radar ! E Sera Bem Recompenssado!",source,0,0,0,true ) --Mensagem de Inicio
outputChatBox ("#00ff00======================================================",source,0,0,0,true )
end
end
addEventHandler( "onMarkerHit", Minicio, incio )
function fim (source)
if veh[source] and isElement(veh[source]) then
destroyElement (veh[source])
givePlayerMoney(source,9999)
setElementVisibleTo ( Bfim, source, false )
outputChatBox("#00ff00voce completou com sucesso !",source,0,0,0,true) -- Mensagem do final do trabalho
else
end
end
addEventHandler("onMarkerHit",Mfim ,fim)
function sair (source)
if (veh[source]) and isElement(veh[source]) then
setElementVisibleTo ( Bfim, source, false )
destroyElement (veh[source])
outputChatBox("#00ff00Voce perdeu seu trabalho", source ,0,0,0,true) -- Quando Ela Sair do Veiculo
else
end
end
addEventHandler ( "onVehicleExit", getRootElement(), sair )
Eu Inicio a tabela no C.Lua mesmo ou Crio uma S.Lua pra iniciar a Tabela nela?