Jump to content

Danz

Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by Danz

  1. Actually let me post you a ScreenShot of the GUI. http://postimg.org/image/w9a9q21tn/ Yea, i need a way to detect if a Element in the Combobox is selected, and to check if that element is a vehicle, that would solve it probably.
  2. Oh snap, i didn't know it didn't have an Origin, can you please, post a "fix"?
  3. Ok, so let me get into this straight away. addEventHandler("onClientGUIClick", createVeh, cVeh) So here is the function: function cVeh ( localPlayer, carModel ) local carName = getVehicleNameFromModel ( tonumber ( carModel ) ) if not carName then outputChatBox ( "That is not a valid car model ID", thePlayer ) else createVehicle ( tonumber ( carModel ), x, y + 2, z ) outputChatBox ( "A " .. carName .. " was created!" ) end end If you understood anything, would you mind telling me what the F is wrong if i keep getting this; WARNING: veh/client.lua:72: Bad argument @ 'getVehicleNameFromModel' [Expected number at argument 1, got nil] Thank you.
  4. Judging your feedback, if you have any suggestions on how i should improve it, just tell me. "To make it "good""
  5. Really Made you make some amazing scripts, i'm so impressed when i installed these, good job mate! There are so bugs that i noticed, i WILL try to fix these.
  6. Hello everybody, and welcome to my first ever uploaded and my first ever made resource. It is the Vending Machine(s) Sorry if the script seems complicated because i am still a newbie in scripting -Features: This resource features 8 in total vending machines, one in each hospital in San Andreas, and one at the 10 Green Bottles bar in Grove Street, Los Santos. -Usage: Really simple, just tick the box next to what you want to purchase, and press Purchase, easy isn't it? -Note: You can edit the script to your liking, as long as you keep the Credits. -Another Note: I did not copy this script from anyone, i made it using my own brain if you know what i mean. -Here is a Screen Shot of the resource; If you have any suggestions, please, post them here, and give me feedback on this, just so can see if people are interested in these, thank you! Download Link: https://community.multitheftauto.com/in ... s&id=10665
  7. Thank you Dealman, this worked perfectly , any moderator can /lock this. Thanks again!
  8. Could you show me the "Fixed" code of my given code? Because i don't quite understand what i should change...
  9. Well i have a problem with my GUI, let me get into details, i'll try to explain this as best as i can because i kinda a newb at scripting, anyway. function createStatsGUI() mainWindow = guiCreateWindow(463, 151, 367, 501, "Player Statistics", false) playerGrid = guiCreateGridList(9, 26, 177, 465, false, mainWindow) closeBtn = guiCreateButton(244, 444, 113, 47, "Close", false, mainWindow) end addEventHandler("onClientResourceStart", resourceRoot, createStatsGUI) function toggleStatsGUI() guiSetVisible (mainWindow, not guiGetVisible (mainWindow)) showCursor (not isCursorShowing()) end bindKey("F2", "down", toggleStatsGUI) From the code above i do not understand what is wrong. Let me say, When the resource starts, my GUI appears, it's bound to F2, when you press F2, the GUI disappears and my Cursor appears, well i want to make it when the resource starts, it doesn't show the GUI, it should show it when i press F2, and my cursor appear when i press F2 with the GUI, any help would be nice, and thank you.
×
×
  • Create New...