murilo2929
Members-
Posts
151 -
Joined
-
Last visited
Everything posted by murilo2929
-
Então eu estou tentando mudar o método de dinheiro dessa loja de tuning para o método que uso mas não estou conseguindo, alguem consegue me ajudar? Meu sistema de money exports.dinheiro:tDinheiro(Player, Quantidade) --- Para ver se o player tem dinheiro exports.dinheiro:pDinheiro(Player, Quantidade) --- Para pegar o dinheiro do player Parte do codigo que eu acho que deveria mudar, mas quando mudo não funciona function hasPlayerMoney(money) if getPlayerMoney(localPlayer) >= money then return true end return false end function moneyChange(amount) takePlayerMoney(loopTable[hoveredCategory]["tuningPrice"]) giveNotification("success", getLocalizedText("notification.success.purchased")) playSoundEffect("moneychange.wav") if amount > 0 then moneyChangeTable = { ["tick"] = getTickCount() + 5000, ["amount"] = amount } end end
-
I think I understand what you want to do, for you to do that just go to the map editor and put your custom model somewhere in the map of preference below it, and get his position, if it has a door goes near it and get the coordinates then you get those coordinates and put them in your interior script.
-
como poderia fazer sem a tabela e fazer o script puxar automaticamente qual lugar vai ser solto, tipo se ele estiver na prisao federal puxa as coordenadas da prisão federal.
-
Estou montando um sistema de prisão, é o seguinte, se o player estiver em uma determinada prisão digamos Prisão Federal na hora que ele for solto ele vai ser setado para area de soltura da prisão federal fiz assim as areas de solturar. localsoltura = { -- x, y, z, int, dim ["Federal"] = {-1047.03125, -632.498046875, 32.0078125, 0, 0}, -- Prisao federal ["PD"] = {1544.5283203125, -1669.046875, 13.558586120605, 0, 0}, -- PD ["HP"] = {633.3251953125, -566.7724609375, 16.3359375, 0, 0} -- HP } o problema é que quando vou soltar o player aparece o seguinte erro. [2019-10-07 13:32:51] WARNING: sistemaprisao\s_prisao.Lua:61: Bad argument @ 'setElementPosition' [Expected number at argument 3, got none] [2019-10-07 13:32:51] WARNING: sistemaprisao\s_prisao.Lua:62: Expected number, got non-convertible string. This warning may be an error in future versions. [2019-10-07 13:32:51] WARNING: sistemaprisao\s_prisao.Lua:63: Expected number, got non-convertible string. This warning may be an error in future versions. E é assim que esta essas linhas de codigos setElementPosition(value, "localsoltura") setElementDimension(value, "localsoltura") setElementInterior(value, "localsoltura") Essas linhas no caso serveriam para puxar se o player estivesse na prisao federal a area de soltura seria da federal, caso estivesse na PD seria a area de soltura na PD, mas não estou conseguindo resolver.
-
don't work dude
-
I am trying to make sure that when a player is not in isElementWithinColShape a message appears stating that it is not in the right place but not working how can I do it? local mechanic = isElementWithinColShape( localPlayer, mecanico ) if not mechanic then outputChatBox("TEST", 255, 0, 0) this is just part of the code saying how I did it, I already set where is the sphere and everything
-
how can i be doing for unbind key mouse 1 which is to shoot? in server.
-
local update = updateItemValue(client, firstClipInventorySlot,firstClipArr[1] ..":"..weaponSyncPacket[3] ..":".. firstClipArr[3] ) Estou com o seguinte problema nesse código acima. ERROR: inventario\s_armas.Lua:196: attempt to index local 'firstClipArr' (a nil value) Como posso estar resolvendo?
-
Muito obrigado pela ajuda funcionou perfeitamente, só estou tendo um problema agora que quando me distancio um pouco certos objetos que eu removi usando o script aparecem, ai quando chego mais perto eles somem de novo sabe como arrumar?
-
Gostaria de saber como faz para remover esses objetos circulados na foto? não consigo remover com a ferramenta padrão do editor.
-
Unbindkey se não me engano
-
Como posso fazer para mudar o estilo de um GUI ? deixar ele mais atual
-
Got it, ty help alot
-
Não conseguir ver onde esta o erro, poderia me ajudar?
-
function funcInput ( thePlayer, key, keyState ) triggerClientEvent(thePlayer, "enableRoadblockGUI", getRootElement(), true) end addEventHandler( "funcInput", getRootElement(), funcInput ) function bindTheKeys ( thePlayer ) bindKey ( thePlayer, "F5", "down", funcInput ) end addEventHandler("onClientResourceStart", resourceRoot, bindTheKeys) addEventHandler ( "onPlayerJoin", getRootElement(), bindTheKeys) I try this on client side and no success.
-
function funcInput ( thePlayer, key, keyState ) triggerClientEvent(thePlayer, "enableRoadblockGUI", getRootElement(), true) end function bindTheKeys ( thePlayer, commandName ) bindKey ( thePlayer, "F5", "down", funcInput ) end addCommandHandler ( "bindme", bindTheKeys ) how do I bind this key without the player having to type the command "bindme"?
-
function funcInput ( thePlayer, key, keyState ) triggerClientEvent(thePlayer, "enableRoadblockGUI", getRootElement(), true) end function bindTheKeys ( thePlayer, commandName ) bindKey ( thePlayer, "F5", "down", funcInput ) end addEventHandler ( "onPlayerJoin", getRootElement(), bindTheKeys ) Tentei assim e nao deu
-
function funcInput ( thePlayer, key, keyState ) triggerClientEvent(thePlayer, "enableRoadblockGUI", getRootElement(), true) end function bindTheKeys ( thePlayer, commandName ) bindKey ( thePlayer, "F5", "down", funcInput ) end addCommandHandler ( "bindme", bindTheKeys ) Testei assim e so funciona quando digito bindme no chat, como fazer para sempre estar ativado?
-
function onRoadblockStart(thePlayer, commandName, parameter) if(isRoadblockEditAllowed(thePlayer)) then triggerClientEvent(thePlayer, "enableRoadblockGUI", getRootElement(), true) end end addCommandHandler("rbs", onRoadblockStart, false, false) Gostaria que quando o player apertasse a tecla F12 esse GUI aparecesse como posso fazer?
-
function playerPressedKey(button, press) if (press) then -- Only output when they press it down outputChatBox("You pressed the "..button.." key!") end end addEventHandler("onClientKey", root, playerPressedKey) Então usei esse codigo aqui e funcionou perfeitamente, só estou com um problema que queria que apenas soltasse o som quando apertasse teclas do teclado, mas quando clico em algum botão do mouse o som tambem funciona tem como cancelar o mouse? Outra coisa tambem que ele esta toda hora quando aperto a tecla solta som, gostaria so na tela de login.
-
Puts mas aí teria que bindar todas as keys do teclado ?
-
Gostaria de saber como posso fazer para que quando um player aperte uma tecla do teclado solte um som, gostaria de fazer isso apenas na area de login.
-
Gostaria de colocar umas luzes piscando em cima do carro para simular o Giroflex, mas como posso pegar as posicoes para o objeto ficar no lugar onde quero?
-
Fazer animações é importar para o mta
murilo2929 replied to DogScripter's topic in Portuguese / Português
Sabe me dizer se é possivel fazer isso com animação de armas tambem? exemplo python.ifp porque sempre quando tento a anim fica bugada.
