Jump to content

DNL291

Moderators
  • Posts

    3,875
  • Joined

  • Days Won

    67

Everything posted by DNL291

  1. DNL291

    help

    function crmarker (player, cmd, x1, x2, x3 ) local x, y, z = getElementPosition(player) if x1 and x2 and x3 then marker1 = createMarker ( x, y, z, "cylinder", 255, 0, 0 ) marker2 = createMarker ( tonumber(x1), tonumber(x2), tonumber(x3), "cylinder", 255, 0, 0 ) else outputChatBox ("[invalid Syntax]: /crmarker [x1], [x2], [x3] ", player, 255, 0, 0 ) end end addCommandHandler("createmarker", crmarker)
  2. Are you talking about what? community.multitheftauto.com?
  3. Vehicle mod: https://community.multitheftauto.com/ind ... ls&id=6628 DONE
  4. You must create your system language to get the player's country.
  5. Você pode baixar a ultima versão do 1.3 aqui: https://nightly.multitheftauto.com/
  6. I don't understand what do you mean. Did you mean this?: function toggleEngine(source) local vehicle = getPedOccupiedVehicle(source) if vehicle then local state = getVehicleEngineState(vehicle) setVehicleEngineState(vehicle, not state) end end addCommandHandler( "engine", toggleEngine )
  7. Well, I tested and it worked for me.
  8. 'pname' Isn't defined. function selfOnCon () local name = getPlayerName (source) local player = getPlayerFromName (name) local ip = getPlayerIP (source) local serial = getPlayerSerial (source) if (ifnameexists(name) == true) then triggerClientEvent (source, "onPlayerGuiLogin", source,name) elseif (ifnameexists(name) == false) then if (ifserialexists(serial) == false) then triggerClientEvent (source, "onPlayerGuiRegister", source,name) else kickPlayer (player, "Console", "Du hast bereits einen Account!") end end end addEventHandler ("onPlayerJoin", getRootElement(), selfOnCon) function ifnameexists (pname) local query = dbQuery ( handler2, "SELECT * FROM userdata WHERE Name=?",pname ) result , numrows, errmsg = dbPoll (query, -1) local row = result[1] if row then return true else return false end end function ifserialexists (serial) local query = dbQuery ( handler2, "SELECT * FROM userdata WHERE Serial=?",serial ) result , numrows, errmsg = dbPoll (query, -1) local row = result[1] if row then return true else return false end end
  9. I get this error WARNING: Bad Arguement @ 'bindKey' Because the key is "F9" and not "f9".
  10. function showWepslicgui ( uPlayer ) account = getPlayerAccount( uPlayer ) if(getAccountData(account, "licence") == false) then triggerClientEvent ( uPlayer, "showWepsLWindow", uPlayer ) end end addEventHandler ( "onMarkerHit", guimarkerwep, showWepslicgui ) function weplicence() money = getPlayerMoney(source) account = getPlayerAccount(source) local price = "25000" if(getAccountData(account, "licence") == false) then if(money >= tonumber(price)) then setAccountData(account, "licence", true) takePlayerMoney(source, tonumber(price)) exports ["guimessages"] : outputServer ( source, "You bought weapon licence,now you can buy weapons!" , 255, 255, 0 ) else exports ["guimessages"] : outputServer ( source, "You don't have enought money!" , 255, 255, 0 ) end end end addEvent("setlic", true) addEventHandler("setlic", getRootElement(), weplicence) function showWepsgui (hitPlayer) account = getPlayerAccount(hitPlayer) if ( getAccountData( account, "licence" ) == true ) then triggerClientEvent ( hitPlayer, "showWepsWindow", hitPlayer ) end end addEventHandler ( "onMarkerHit", guimarkerwep, showWepsgui )
  11. addEventHandler("onClientResourceStart", resourceRoot, function() myWindow = guiCreateWindow(420, 210, 433, 320, "Jetpack giver By Robbster", false) guiWindowSetSizable(myWindow, false) guiSetVisible(myWindow,false) JetpackButton = guiCreateButton(122, 123, 188, 87, "Give yourself Jetpack", false, myWindow) end ) function jetpackPanel(keyPresser) if guiGetVisible(myWindow) then guiSetVisible(myWindow, false) showCursor(false, false) else guiSetVisible(myWindow, true) showCursor(true, true) end end bindKey("f9", "down", jetpackPanel)
  12. DNL291

    Problem

    So show the server side code.
  13. Se você quer que o Bot apenas siga, porque não usa no argumento theMode para seguir apenas?
  14. Está fazendo o bot seguir com a função exportada? (Eu nunca usei o resource slothBot, não sei te indicar a função para ser usada). DebugScript não mostra nenhum erro certo? Você já criou a equipe no mesmo código, então não precisa usar getTeamFromName(), apenas defina a variavel na função createTeam e use ela.
  15. Pode ser um erro com a função exportada do slothBot. Veja se tem algum erro no debugScript. Caso você possa, coloque seu código inteiro aqui.
  16. Mas o script não vai funcionar. Você só criou o manipulador de comando ligando a função, mas ela não tem nenhuma função.
  17. O própiro nome do tópico já diz o que falta. Está faltando 'then' na condição da linha 4 do código. De qualquer forma, você pode usar isso: local AllPlayers = getElementsByType ("player") for _, player in ipairs (AllPlayers) do if (getElementModel(player) == 284) and (getPlayerTeam(player) == RPD) then exports[ "slothBot" ]:setBotFollow(Ashley, player) end end Se RPD Não for uma equipe criada no mesmo código, use getTeamFromName("RPD").
  18. Skin mod & no description: https://community.multitheftauto.com/ind ... ls&id=6572 DONE
  19. function triggerRespawn() triggerServerEvent( "respawn", localPlayer ) end setTimer(triggerRespawn, 600000, 0)
  20. Para a habilidade que você definiu para a arma funcionar, o jogador deve ter o mesmo nível de habilidade definido.
  21. setWeaponProperty(weaponID, "poor", "damage", value) The 'value' argument is a number you want for the damage. The player must have the "poor" skill set to have the effect.
×
×
  • Create New...