Patrick

Other Languages Moderators
  • Content Count

    617
  • Joined

  • Last visited

  • Days Won

    12

Patrick last won the day on March 14

Patrick had the most liked content!

Community Reputation

199 Celebrity

About Patrick

Details

  • Gang
    SkyTeam
  • Location
    Hungary

Recent Profile Visitors

2,363 profile views
  1. Some tutorial: https://www.youtube.com/watch?v=0S0k9ny3d4M (Check the whole channel) https://forum.mtasa.com/topic/121619-Lua-for-absolute-beginners https://forum.mtasa.com/topic/95654-tut-debugging/ https://forum.mtasa.com/topic/114541-tut-events/
  2. Hi! You need to use dbConnect to connect databases. (both MySQL / SQLite) For the GUI, you need: guiCreateWindow - background window guiCreateLabel - texts guiCreateEdit - inputs guiCreateButton - buttons guiGetText - get input's text onClientGUIClick - detect when client push to button (event) triggerServerEvent - send datas to server side You can use default login/register functions addAccount - add new account (register) getAccount - get the account from username and password logIn - login player the the account Or do your own account system, with database.
  3. Mondjuk egy timer 2 másodpercenként lekérdezi a sebességet és lementi egy táblázatba. (egymás után, sorban az értékeket) És ezt felhasználva kirajzolja egy render funkcióban. Sok kis "oszlop", mind olyan színű ami a megfelelő értékhez tartozik. (de ez elég sok rectangle lesz, szóval erre figyelni kell)
  4. Patrick

    hat script

    How The_GTA said, you need to use bone_attach. But here is a similar resource, check how it works: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14125
  5. Amit küldtem az-az alap voice resource, azzal lehet ilyen csatornákat csinálni. Ha azt akarod, hogy közeledben lévők és a telefonon is halljanak, akkor tudod ezen felül állítani, hogy ki hallja a játékost. (setPlayerVoiceBroadcastTo)
  6. A playereket külön csatornákra lehet tenni, azok hallják egymást akik azonos csatornán vannak. Mikor valakik telefonon beszélnek, akkor azonos csatornára kell őket tenni. https://wiki.multitheftauto.com/wiki/Resource:Voice
  7. I think you try to use this code on client side, but you need to use on server side, because of addCommandHandler. On server side, addCommandHandler pass the following arguments to attached function: PLAYERELEMENT, COMMANDNAME, ... But on client side, its not pass PLAYERELEMENT, because its can be only localPlayer. Looks: COMMANDNAME, ... Wiki: addCommandHandler How to use on client side: -- CLIENT SIDE function PlateText() local Vehicle = getPedOccupiedVehicle(localPlayer) if Vehicle then outputChatBox("Hi") else outputChatBox("bye") end end addCommandHandler("something", PlateText)
  8. Patrick

    Help with a gsub

    ("#ff0000text"):gsub("#%x%x%x%x%x%x", "") -- text
  9. I have a resource for this on community. https://community.multitheftauto.com/index.php?p=resources&s=details&id=18006
  10. Hi! Please first search what you want to ask.
  11. I'm happy to help but you also have to learn. Some Lua tutorial for you: - https://forum.mtasa.com/topic/121619-Lua-for-absolute-beginners - https://forum.mtasa.com/topic/64228-the-ultimate-Lua-tutorial/ - https://forum.mtasa.com/topic/95654-tut-debugging/ - https://forum.mtasa.com/topic/114541-tut-events/ local status = false function ghostmode_toggle() status = not status -- toggle status if status then for i,v in pairs(getElementsByType("player")) do --LOOP through all players setElementCollidableWith(v, localPlayer, false) -- Set the collison off with the other players. end outputChatBox("You are now a Ghost") else for i,v in pairs(getElementsByType("player")) do --LOOP through all players setElementCollidableWith(v, localPlayer, true) -- Set the collison on with the other players. end outputChatBox("You aren't a Ghost") end end addCommandHandler("ghostmode", ghostmode_toggle) -- Add the /ghostmode Command.
  12. function ghostmode_on() for i,v in pairs(getElementsByType("player")) do --LOOP through all players setElementCollidableWith(v, localPlayer, false) -- Set the collison off with the other vehicles. end outputChatBox("You are now a Ghost") end addCommandHandler("ghostmode", ghostmode_on) -- Add the /ghostmode Command. Replace vehicle elements with players.
  13. https://wiki.multitheftauto.com/wiki/SetElementCollisionsEnabled Note: Vehicles that are collisionless and have a driver will cause bugs. Note: Enabling a players collisions when they're inside a vehicle will cause bugs. Note: Disabling a peds collisions will cause some problems, such as it being unable to move or wrong rotation after creation. But I think setElementCollidableWith what you want. Check the example on wiki.
  14. @vito.almeida2010@gmail.com Hi! This is an English section. Please translate your message.