Jump to content

callum123

Members
  • Content Count

    41
  • Joined

  • Last visited

Community Reputation

0 Neutral

About callum123

  • Rank
    Rat

Details

  • Gang
    WestSide!
  1. Spawning system, click on a button and that has element data regarding the character (button) you have chosen. Anyways I fixed my error. I didn't realise you could not leave the path blank.
  2. Alright thanks. Another quick question, I have been setting element data to a button and everything worked, I tried switching the button to a static image and now its not being classed as an element? Is is possible to setElementData to a guiCreateStaticImage like you can do to a guiCreateButton?
  3. I don't think I can, however I thought I would just check... Is it possible to draw images inside a scroll pane? - Setting the parent of the dxDrawImage to the scrollpane? Since the dxDrawImages are not elements (correct me if I am wrong), I am not able to do this? Thanks, Callum
  4. I'm unsure where I would have to set the data.. What I have been doing is just making a new column in an SQL table. I made a column called 'hunger' and then set the default value to 100 and then I am trying to get that value.
  5. I think he wants it so the people who use the GUI can go on it and store their own data. And then store that clientside and not in like an sql table.
  6. So, if I want to select a vehicle from an SQL database and then pull it into the code, how can I then turn that into an element so then I can use getVehiclePlate etc... So far I have it where Io pull the certain vehicles from the SQL and then populate a gridlist clientside. Trouble is I need to get like the vehicles name and lots of other details of the vehicles. I think this sort of makes sense, thanks for your help.
  7. Say I have some mapping, is there any difference in FPS, draw distance, Lag etc... from converting a map file into createObject in lua? Whats are the pro's and con's of each? Thanks.
  8. Like this will not even display the debug string. logInDetails1 = "Hello123" for _, vehicle in ipairs (getElementsByType ("vehicle")) do if getVehiclePlateText ( vehicle ) == tostring(logInDetails1) then outputDebugString("Test") Is http://wiki.multitheftauto.com/wiki/GetVehiclePlateText a server function? In the list it is not displayed yet on the actual page it is displayed...?
  9. No errors no, even if I do if getVehiclePlateText ( vehicle ) == "Hello123" then And I know there is a vehicle with that plate, it seems not to enter the if statement.
  10. Tried doing this with no luck. Is there some minor tweaks needed? function getVehicleByPlate ( logInDetails ) for _, vehicle in ipairs (getElementsByType ("vehicle")) do if getVehiclePlateText ( vehicle ) == logInDetails then found = vehicle local x, y, z = getElementPosition(source) local vx, vy, vz = getElementPosition(found) if getDistanceBetweenPoints2D(x, y, vx, vy) < 420 then createBlipAttachedTo(found, 0, 4, 255, 0, 0, 255, 0, 100, source) outputChatBox("Plate registered and found, dest
  11. How do I get the vehicle from the number plate? Is it possible? I want to add a blip to the vehicle without anyone inside it. I want to get hold of the vehicle from the number plate....
  12. What I wanted to do was to allow players to start/stop resources for themselves without it affecting any other players. Edit: Or how about just using these (Since I wanted to make the script for allowing car mods) engineLoadDFF engineLoadTXD and then making them load for the player who called it only? Therefore some players can have car mods and other can choose not to install them? Could that work?
  13. So I am in a server and I want to then open a gui and click 'download this script' and then that script will download to your own client side files after you have pressed it. How would this be possible? For example if I wanted to make a resource only available to be downloaded by those I want it to?
  14. Alright, thanks for your quick help! I did try something like that, but without the check! Thanks for helping me learn!
×
×
  • Create New...