Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About bradio10

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Nice job, looks cool! I also really like your speedometer too
  2. You would trigger an event using triggerClientEvent() And in the client event, show the GUI, you would use guiSetVisible() And when looking at triggerClientEvent, check out some of the other functions at the bottom of the page to see how to add events and stuff if you're not sure how to do that. If you're still confused, let us know
  3. bradio10


    Have you tried doing: local upgrades = fromJSON(result[1].upgrades) or local upgrades = fromJSON(result.upgrades) instead of what you currently have which is local upgrades = fromJSON(result[1]["upgrades"]) Not sure if it will make any difference/fix the issue, but I've never seen the way you do it before.
  4. Hi, I have made a system so I can have multi language support and I currently have all the logic for translations in Lua tables, but I was wanting to know if it would be better to have all the tables in XML? Would XML be more faster and more efficient than having them in Lua tables or would it not really matter? Thanks.
  5. Have you tried passing the data to the clientside after you've done the loop on the server? Something like: I don't think I've used client for the triggerClientEvent properly, but do you get what I mean? EDIT: I just tested it and this works -- [[ SERVER SIDE ]] -- c_database = dbConnect("mysql", "dbname=DATABASE;host=localhost;port=3306", "USERNAME", "PASSWORD" ) local tbl = dbExec(c_database, "CREATE TABLE IF NOT EXISTS player_stats (account TEXT, health INT, hunger INT, thirst INT)") -- Using the queried data from queryDataFromDB, we assign each value to a variable (health,
  6. Oh thanks for that. Solves one issue Any ideas about the other stuff though?
  7. Just to bump their current post, They have added more locations! New locations: - Perth, Australia - Melbourne, Australia - Montreal, Canada - Miami, USA Not all are listed on the product page, but I'm sure you can contact them and ask if they can set one up in the location you want! Links: https://www.streamline-servers.com/gameservers/mta.html I personally have one in Melbourne, Australia and its very smooth and fast for me! Very satisfied with the service and customer support has been awesome! And before you ask, no I wasn't paid or given anything to post this, I simply think they
  8. Hi, I'm currently using a method to detect when I click on a DX element by checking if the cursor is within the DX elements coordinates. I'm wanting to know if there is a better way of doing this? I thought about just putting gui buttons over something that would be clicked on and using GUI functions, but there should be either an easier or better way of doing that right? And also, I saw a post that someone said that onClientClick executes twice which is annoying because I'm using that to detect the click on a DX button and when I want it to output something, it outputs it twice. Which is a
  9. Well, you could do it like that, but I was referfering to just using the relative ratios, like: 0 = 0% of screen 0.5 = 50% of screen 1 = 100% of screen So, something like this: guiCreateWindow ( 0.3, 0.3, 0.6, 0.6, "Relative Window", true ) I see. Thats how I normally create my GUIs atm. I have also noticed that if I create a relative GUI's in a resolution like 1920x1080 and then someone views it with a smaller resolution, the scale of the elements is really weird and they look funny. But when people use absolute values and calculate them, it doesnt seem to do that.
  10. Thanks for the answers. Really has helped! One question though about your answer to my second question, by ratio numbers, you mean like what you did with the dxDrawRectangle on every element right? I have seen some people do it on GUIs and only do it for the window. I understand you have to do it for all DX elements, but do you have to do it also for all GUI elements?
  11. Hi, I have a couple of questions that I still have been confused about for a while. 1) When creating GUI's and DX stuff, whats the correct way to have it aligned and "all good" for all resolutions? I have seen people do it multiple ways and it just makes me confused. So if anyone has a fully working solution, please let me know 2) When creating GUI's, if I create it using absolute values, do I have to calculate all the GUI elements with the screenHeight, screenWidth solution? Or do I just have to do it for the window? 3) Is it best to just create GUIs with relative values or is doing it w
  12. Hi, So I've been mucking around with moveObject and trying to rotate doors and the police barrier. Now, I have noticed something strange and I can't seem to get my head around it. When I create the barrier, I set it to create with a rotation of 90, 0, 90. When I enter the marker, it moves to point the sky (like I want it to), but when I output what the rotation of it is when its pointing to the sky, it still says 90, 0, 90. When I exit the marker, it moves back to the rotation it was created with, but it says its 0, 0, 90. So I tried to create the object starting at 0, 0, 90 (cus it says
  13. Thanks for your help, timer works great!
  14. One problem that I have noticed when driving into the colshape is that when I leave, it still detects a vehicle in the colshape, even though I have driven out and no other vehicle is within the colshape.
  • Create New...