
brunob22
Members-
Posts
159 -
Joined
-
Last visited
Everything posted by brunob22
-
sim precisa. porque como eu informei sao numeros de 1 a 9 que forma um numero de 3 digitos esse eo resultado velocidade 139 resultado
-
como na imagem ali o testo fica mudando, são texturas do 1 ao 9 com 3 casas entao quando o carro tiver com a velocidade acima de 3 sei que vao ser 3 casas de texturas para alterar e assim separando os numero vou poder colocar que 1 = a texturar q mostra o 1 eo outros 2 zeros vao ser as texturas do zero ex: primeira casa if velocidade == 5 then textura3 = "5.png" segunda casa if velocidade == 0 then textura2 = "0.png" terceira casa if velocidade == 0 then textura3 = "0.png" basicamente essa ea ideia que eu tenho. vai funcionar? não tenho ideia kkkk amanha vou testar usando addCommandHandler e vamos ver em que vai dar ex: comando : velocidade 400 ai no painel tem q aparecer 400 entendeu? ai eu mudando local test = utf8.sub(velocity,i,1) ai ele vai so imprimir o primeiro numero que o 5 e assim vou ter o valor que test == 5
-
testei fiz assim. local velocity = 500 local casas = #tostring(velocity) for i=1, #tostring(velocity) do local test = utf8.sub(velocity,i,i) outputChatBox(test) end tive esse resultado.. @DNL291 vlw e nois .. vou ir dormi agora e amanha brinca um pouco ate eu ter o resultado que desejo
-
como a velocidade do carro vem ja em number vou usar tostring() vou testa o resto
-
Olá eu to com um projeto em mente mais para isso tenho que separar os numeros to pegando a velocidade do carro ela vem assim " 100 " mais eu queria separar em vez de 100 teria q vim 1 0 0 separados em 3 linhas alguem tem ideia de como fazer isso? e se possivel tb contar a quantidade de linhas por ex o carro ta a cima de 100 entao são 3 casas, agora se ele ta abaixo de 99 são 2 casas e assim por diante diferentes de algums não preciso esconder codigo ou projeto a ideia e transforma isso em um registrador de velocidade https://imgur.com/a/m75AU81 e assim fazer essa lombada eletronica totalmente funcional
-
DISCORD: recheiodabolacha#5748
-
porque a função de abriir e fechar ta levando para o msm lugar do client ? triggerClientEvent (source, "DeltaSCR_OCRG", root)
-
function openPainel (marker, md) if not getElementData (source, "DeltaSCR_HaveRG") == "Sim" then --- < <<< MUDE SIM E NAO . PARA TRUE E FALSE E ASSIM FICA if X then mais facil doque if x = "sim" then if md then if marker == mkRG then ---<<<< MKRG? ???????????? triggerClientEvent (source, "DeltaSCR_OCRG", root) end end else outputChatBox ("#ffff00Atenção: Você já possui seu RG", localPlayer, 255, 255, 255, true) ---<<< ja foi informado que localplayer e so client end end addEventHandler ("onPlayerMarkerHit", getRootElement(), openPainel) ---< "onPlayerMarkerHit" esse evento e chamado quando o player entra .. function closePainel (marker, md) if md then --- <<<< VOCE SABE QUE ISSO EA DIMENSAO? QUE O PLAYER TA? if marker == mkRG then ---- << mkRG? que isso? triggerClientEvent (source, "DeltaSCR_OCRG", root) ---<<< E ISSO VAI PARA ONDE? NARMIA? end end end addEventHandler ("onPlayerMarkerLeave", getRootElement(), closePainel) ctz? mudei algumas coisas para ver q resto de codigo não funciona tenho algum desconfiança que esse codigo tu pego pronto
-
fica postando resto de codigo. fica dificil pelo menos eu .. se quiser minha ajuda nao poste resto de codigo porque eu não sou advinha
-
e so usar https://community.multitheftauto.com/ boa sorte acho que voce deveriar parar de criar topico pedindo coisas
-
isso mesmo
-
e msm esquema da lombada eletronica q eu fiz "EU" no modelador 3d posso mudar para qualquer velocidade tb poderia criar objectos diferente com os numeros e assim fazer uma script que poderia registrar a velocidade do player e aparecer no painel com o tb muda a placa
-
não , como eu falei "eu posso alterar a qualquer momento que eu quiser"
-
sim ate porque a velocidade não e uma textura desenhada
-
qual 1 que eu quiser por
-
placas de transito que eu fiz recemente.. tenho outros projetos tb
-
olha como e facil http://lmgtfy.com/?q=mod+de+pegar+arma+mta+sa
-
isso ta muito com cara que não foi voce que fez
-
tenta isso veh = {} vehCol = {} function veiculodayz(thePlayer) local accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then if veh[thePlayer] then DestroyElement(veh[thePlayer]) DestroyElement(vehCol[thePlayer]) end local x, y, z = getElementPosition(thePlayer) veh[thePlayer] = createVehicle(411, x+3, y, z) setVehicleColor(veh[thePlayer],255,255,255) vehCol[thePlayer] = createColSphere(x, y, z, 2.5) attachElements( vehCol, veh, 0, 0, 0 ) setElementData(vehCol[thePlayer],"parent",veh) setElementData(veh[thePlayer],"parent",vehCol) setElementData(vehCol[thePlayer],"vehicle",true) setElementData(vehCol[thePlayer],"Tire_inVehicle",4) setElementData(vehCol[thePlayer],"Engine_inVehicle",1) setElementData(vehCol[thePlayer],"Parts_inVehicle",1) setElementData(vehCol[thePlayer],"fuel",10000) end end addCommandHandler("carro", veiculodayz) não testei
-
não entendi
-
function veiculodayz(thePlayer) local accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then if veh then DestroyElement(veh) DestroyElement(vehCol) end local x, y, z = getElementPosition(thePlayer) veh = createVehicle(411, x+3, y, z) setVehicleColor(veh,255,255,255) vehCol = createColSphere(x, y, z, 2.5) attachElements( vehCol, veh, 0, 0, 0 ) setElementData(vehCol,"parent",veh) setElementData(veh,"parent",vehCol) setElementData(vehCol,"vehicle",true) setElementData(vehCol,"Tire_inVehicle",4) setElementData(vehCol,"Engine_inVehicle",1) setElementData(vehCol,"Parts_inVehicle",1) setElementData(vehCol,"fuel",10000) end end addCommandHandler("carro", veiculodayz)
-
function Salvar_Itens_Sair(quitType) local acc = getPlayerAccount(source) if not (isGuestAccount(acc)) then if acc then Salvar_Itens_Agua(acc) end end end addEventHandler("onPlayerQuit", getRootElement(), Salvar_Itens_Sair) function Salvar_Itens_Agua(conta) if conta then local source = getAccountPlayer(conta) --< CONTA DE UM CARA QUE QUITO? if isElement(source) then local ItemAgua = getElementData(source,"Agua") or 0 ---< como ele vai pega o elemento do cara se ele quito? setAccountData(conta, "ItemAgua",tonumber(ItemAgua)) end end end so pensa comigo como vai pega elemento? se o cara quito? so pensa um pouco toda essa função se torna nula
-
tem um tutorial ja no forum amigo
-
isObjectInACLGroup