Jump to content

Mature

Members
  • Content Count

    49
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Mature

  • Rank
    Rat

Recent Profile Visitors

312 profile views
  1. Pode enviar seu código por favor para te ajudar?
  2. Só altere a ACL, coloquei como admin, mas deve funcionar function abrir1 (thePlayer) if (thePlayer) and (getElementType (thePlayer) == "player") then if (isGuestAccount(getPlayerAccount(thePlayer)) == false) and isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Admin" ) ) then triggerClientEvent (thePlayer, "tec9gui", thePlayer) end end end addEventHandler ("onMarkerHit", tec9, abrir1)
  3. utilize resourceRoot em ambos scripts no lugar do root
  4. https://www.mtabrasil.com.br/2012/09/veiculo-radio.html
  5. Envia o código de quando abre ele por favor, ou você pode adicionar: --#Adicione isso quando o painel abrir local timerDelay function openPanel () if not isTimer(timerDelay) then --#Painel abriu timerDelay = setTimer(function() end, 3000, 1) else --#Informa que o painel não pode ser acionado no momento end end
  6. Não testei, mas pode funcionar local blip = {} addEventHandler('onResourceStart', resourceRoot, function () local player = nil for i=1, #getElementsByType("player") do player = getElementsByType("player")[i] local x,y,z = getElementPosition(player) blip[player] = createBlipAttachedTo ( player, 0) if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup ("Moderator")) or isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup ("SuperModerator")) or isObjectInACLGroup ("user."..getAccountName(getPlayerAccou
  7. para não ter risco dele pressionar algo que tenha uma função de unfreeze, da para cancelar as teclas do teclado, pode funcionar addEventHandler("onClientKey", root, function (button, press) if (press) then cancelEvent() end end) Ou utilizando um setTimer com um isElementFrozen e se o frozen ser falso ativa ele novamente https://wiki.multitheftauto.com/wiki/IsElementFrozen
  8. Hello, I have a doubt that I have no idea to execute, I would like to create a radio frequency system, along with the voice, after the player pressing 'Z', he will speak normally in the voice and when pressing, for example, ' X 'he will speak in the voice of the radio or in the key configured as Tokovoip, is it possible? How can I do? you don't need to give me the script by hand, just tell me what to use. Thank you in advance
  9. Hello, I have a problem that I don't understand, the inventory loads normally, but it is loading only slots 1 and 2, it is not loading slot 8, but if the slots are in sequence, it loads normally, can someone help me? On the server when I finish loading I pull the value that the table is on and it always returns me as 2, instead of 3 As it is in the database: https://imgur.com/LEXgGQf As it is in the inventory: https://imgur.com/undefined (The black slots are basically occupied by an item) The Event ("rzk: load: items") is done when you open the inventory Server:
  10. Mature

    [Doubts] IPB

    Hello, I am creating a large script and I would like to know how many percent are considered healthy for a script to reach IPB and start to be something bad for the player and the server?
  11. Basically they are login resources etc, yes it does have a resource where the SQL is located and does the saving, the way I tried to do it was to create the tables in MySql, kind of manue and after calling a for with all the data, it gave until right, but it did give some error: Method: function savedatabase () dbHandler = dbConnect("mysql","dbname=".. sqlDatas["database"] ..";host="..sqlDatas["host"], sqlDatas["user"], sqlDatas["pw"], "autoreconnect=1") if dbHandler then print('O Database foi conectado.') else error('O Database não foi conectado.')
  12. I can't even imagine how to start it, I don't know anything about sql ...
  13. I made a small system where every day at 4 o'clock in the morning, it disconnects all players and saves saved tables, but I find it very rustic and giving some errors, I have mastered the basics of SQL so I wanted to know a method , this method you put there the server itself may be saving?
×
×
  • Create New...