Jump to content

harryh

Members
  • Posts

    108
  • Joined

  • Last visited

Everything posted by harryh

  1. Citizen, I have a problem with the script but Im unsure why. For some reason upgrades for different cars show up in the sultan upgrades list.
  2. Haha, its alright. Thanks for helping me
  3. Your Error: Perform arthimetic with string value or something. Before: outputDebugString("[ERROR] Couldn't get a vehicle upgrade name (" + tostring(value) + ")", 1) Fix: outputDebugString("[ERROR] Couldn't get a vehicle upgrade name (" .. tostring(value) ..")", 1) My Error: Element was not the vehicle but the player inside Fix: Sent over thePlayer Arg. and then used get getPedOccupiedVehicle to get the compatible upgrades.
  4. Well I need it to get the selected item from the gridlist then look at a table and get the certain ID. It must then add use that ID as addVehicleUpgrade ID for the vehicle the player is it. I need some guidance on how I am to do this. GUI: Vehicle Mods Table: Here is what I have so far. However, it doesn't work. function buymod() local bSelect = guiGridListGetSelectedItem(bodygrid) outputChatBox(bSelect) local iData = guiGridListGetItemData(bodygrid, bSelect, bSelect) outputChatBox(iData) end
  5. Mate if you read the script you would see that I already have that function. But I do not understand how to use in for this coding situation. I need someone to look at the script and tell me where I'm going wrong
  6. Well, I would like for the script to get compatible vehicle upgrades from a list. Which I have typed up and see if they fit the vehicle. If they fit the vehicle they will show up in the GUI Box. If not they will not show up. What happens is that the mods show up in the list but it shows all of the mods in the list not just the compatible ones like it suppose to. GUI: Script: Vehicle mods list is in the meta file as g_vehmods and works. Section of Vehicle Mods List:
×
×
  • Create New...