Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/06/22 in all areas

  1. @greenops011 If the developer sets another resource as a dependency, then the <include /> tag should ? have been used in the meta.xml. https://wiki.multitheftauto.com/wiki/Meta.xml If not, then indeed as Fernando explains, the functions you should look for.
    1 point
  2. The 2 most common ways of interacting with other resource scripts is: - calling exported functions like: exports.resourceName:functionName or exports["resourceName"]:functionName - calling events, you should look for which were added in other resources: triggerEvent, triggerServerEvent, etc
    1 point
  3. E aí, @SciptNovato. Belezinha? Quando o código é server-side, o elemento do player precisa estar vindo de algum lugar para o servidor reconhecer. Aquele todo seu primeiro código (para referência, veja abaixo) não faz sentido nesse caso — playerSource, targetPlayer e thePlayer não existem ali. Eles precisam estar dentro de alguma função que o player faça sentido. Além disso, prefira usar variáveis locais em vez de globais, irá poupar recursos do seu servidor e irá manter o escopo global do seu servidor limpo. Jogador1 = getPlayerName(playerSource) Jogador2 = getPlayerName(targetPlayer) Jogador3 = getPlayerName(thePlayer) IP1 = getPlayerIP(playerSource) IP2 = getPlayerIP(targetPlayer) IP3 = getPlayerIP(thePlayer) Serial1 = getPlayerSerial(playerSource) Serial2 = getPlayerSerial(targetPlayer) Serial3 = getPlayerSerial(thePlayer) ID1 = getElementData(playerSource, "ID") ID2 = getElementData(targetPlayer, "ID") ID3 = getElementData(playerSource, "ID") players = getElementsByType("player")
    1 point
  4. Please post an appeal containing your MTA serial in https://forum.multitheftauto.com/forum/180-ban-appeals/
    1 point
×
×
  • Create New...