Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. Why are you getting the distance on resource start? Also, source in onResourceStart is the root element.
  2. Sometimes the unix_socket might be the problem. What exactly is the error?
  3. Because your logic is a bit foggy, 2 zombies out of 4? So just after 2 zombie kills bonus should be given?
  4. I already mentioned that you should sync what you need whenever you need it. Using tables along with exports is fine, and you can permanently save the data in the table using SQL. Data that needs to be always present on the client-side (scoreboard columns) can be set using element data.
  5. setAccountData(account, 'password', password) The password should be encrypted. You can also use SQL.
  6. JR10

    Help

    Looks fine, but you're missing an end. That and the forum doesn't like your language.
  7. There's no way to get the account's password, you have to store the password manually.
  8. JR10

    Player Blips

    It's a trivial feature, so it will probably be added next version, be that 1.5.1 or 1.6.
  9. JR10

    Player Blips

    There's a pull request for it on GitHub though: https://github.com/multitheftauto/mtasa-blue/pull/10
  10. No. Element data is not the best way to manage player's data. You might need its sync feature for specific things but most of the time you won't need to sync each element data. Use tables instead. Sync only what you need to sync, scoreboard data being one.
  11. They manually store the passwords.
  12. JR10

    Player Blips

    Try detecting whenever the player's team changes, it's much more efficient than using an infinite timer.
  13. JR10

    Help

    getCursorPosition
  14. I understand that it's eventually the same thing, I just remember having a problem with a similar thing. Are you using the selected row index to get the "Music" item's index? The section row will take the first index, so you don't need to row+1. If you don't understand, post the code where you get the selected item's index.
  15. I don't exactly understand the problem here. Try separating adding the row and setting the item's text: local row = guiGridListAddRow ( grid ) guiGridListSetItemText ( grid, row, 1, "MyMusiclist", true, true ) If I recall correctly, I had a problem with something like that once.
  16. JR10

    Close [Topic]

    Why isn't it possible? He can use triggerServerEvent with the account name from the edit and just do whatever with it on the server.
  17. source might not always be the "good" player. You should avoid using source when triggering data from the client to the server, and use client instead.
  18. /report triggers the server to use takePlayerScreenShot, then opens the window so that the reporter can fill in the report data. You can then store the report data (each report should have a unique ID) in a table. It could also be made so that the GUI opens immediately while the screenshot is being taken.
  19. Notepad++ is widely used, it's good enough. Sublime Text 3 is great, if you can afford it. Also, check this topic: viewtopic.php?f=91&t=31891
  20. You're going to have to script it yourself, pay someone to do it for you or use one of the public resources.
  21. The image doesn't work. I'm guessing you want to take screenshots and send it to the server. You can use takePlayerScreenShot and store it in a table along with the report data, then send it to client-side whenever needed.
  22. These are the publicly released ones on the community: https://community.multitheftauto.com/index.php?p= ... ls&id=7784 https://community.multitheftauto.com/index.php?p= ... s&id=11490 https://community.multitheftauto.com/index.php?p= ... ls&id=5961
  23. Try checking the boolean value returned by setAccountData.
  24. dxGetTextWidth and dxGetFontHeight
×
×
  • Create New...