Jump to content

DNL291

Moderators
  • Posts

    3,875
  • Joined

  • Days Won

    67

Everything posted by DNL291

  1. No description: https://community.multitheftauto.com/ind ... ls&id=6862 DONE
  2. so, how exacly do i fix this? Use pairs instead.
  3. You can use the getDistanceBetweenPoints3D function, to get the spawn point closest to the player.
  4. Do you mean show/hide a button? If yes, use guiSetVisible.
  5. This may be because you put your server ip in mtaserver.conf.
  6. Is because you changed the file interiors.map.
  7. DNL291

    [Tables]

    Skin id is a numeric value not a string. Use local variables.
  8. https://community.multitheftauto.com/ind ... ls&id=6851 DONE
  9. No código que você mostrou, você colocou: setElementData(source, "levelName", name), e usou: getElementData(localPlayer,"level") no lado client. Nem preciso dizer que o erro é a key que está diferente. Se você está usando o evento onElementDataChange na função NivelR (como no código mostrado), então o argumento thePlayer está errado porque não é a source.
  10. You didn't show where uPed was defined. Also, tell which line is the problem.
  11. See the parameters of onPlayerSpawn event. Use the source instead parameter player.
  12. O lado server tem alguns problemas, a source do evento onElementDataChange não é o jogador. O jogador não foi definido na função exportada getPlayerLevel. Foi definida a key levelName na função setElementData do lado server, E você está usando outra key (chave) no lado client.
  13. No description: https://community.multitheftauto.com/in ... ls&id=6834 DONE
  14. Sim, no client é apenas para o jogador local. Eu fiz um script há um tempo, que o jogo fica em slow para o jogador que leva um headshot. No lado client fica apenas para o jogador local.
  15. Você pode tentar dessa forma. Server: local level = exports.exp_system:getPlayerLevel ( thePlayer ) local name, expreq = exports.exp_system:getLevelData ( level ) triggerClientEvent(thePlayer, "onGetLevelData", thePlayer, name, expreq) Client: addEvent("onGetLevelData", true) addEventHandler("onGetLevelData", root, function(name, expreq) outputChatBox( name ..": ".. expreq ) end ) Ou assim. Server: local level = exports.exp_system:getPlayerLevel ( thePlayer ) local name, expreq = exports.exp_system:getLevelData ( level ) setElementData(thePlayer, "levelName", name) setElementData(thePlayer, "expRequired", expreq) Client: local name = getElementData(thePlayer, "levelName") local expreq = getElementData(thePlayer, "expRequired") outputChatBox( name ..": ".. expreq )
  16. Não é possível que a velocidade do jogo seja definida para todos no lado client (no Freeroam define apenas para o jogador local). velocidade = guiCreateCheckBox(25, 55, 73, 23, "Velocidade 3x", false, false, MaligNosWindow) function velo() local selected = guiCheckBoxGetSelected(velocidade) if selected then setGameSpeed(3) elseif ( not selected ) then setGameSpeed(1) end end addEventHandler("onClientGUIClick", velocidade, velo, false)
  17. Skin mod: https://community.multitheftauto.com/ind ... ls&id=6829 DONE
  18. Você pode enviar esses pontos usando a função triggerClientEvent/triggerServerEvent ou setElementData dependendo do caso. Se estiver com algum problema para enviar esse valor, mostre o código que você está tentando.
  19. Try this (client): function Portugues() if getElementData(localPlayer,"Idioma") == "inglês" then return end outputChatBox("idioma Portugues.", 0, 255, 0, false) setElementData(localPlayer, "Idioma", "Portugues") end function Ingles() if getElementData(localPlayer,"Idioma") == "Portugues" then return end outputChatBox("idioma inglês.", 0, 255, 0, false) setElementData(localPlayer, "Idioma", "inglês") end
  20. Why ask if this is correct? If not working tell us what the problem is.
  21. DNL291

    Wheel Mod Help

    I didn't understand what you say. If you want to replace the wheels, put the path of the your wheel mod and the ID of the wheel in the code I posted. Also, You need of the meta.xml file. <meta> <script src="client.lua" type="client" /> <file src="wheel.dff" type="client" /> <file src="wheel.txd" type="client" /> </meta> Put the path of the your wheel mod on the meta.xml too, and the script name.
×
×
  • Create New...