Jump to content

Problem with wheel name


developa

Recommended Posts

Posted (edited)
local wheelsNames = {
	[1025] = "Offroad",
	[1073] = "Shadow",
	[1074] = "Mega",
	[1075] = "Rimshine",
	[1076] = "Wires",
	[1077] = "Classic",
	[1078] = "Twist",
	[1079] = "Cutter",
	[1080] = "Switch",
	[1081] = "Grove",
	[1082] = "Import",
	[1083] = "Dollar",
	[1084] = "Trance",
	[1085] = "Atomic"
}

addCommandHandler("check", function()
	accessories = {}
	vehicle = getPedOccupiedVehicle(localPlayer)
	
    for key,v in pairs(wheelsNames) do
		if getVehicleUpgradeOnSlot(vehicle, 12) == key then
			table.insert(accessories, "wheels: "..v)
		end
	end
    
    outputChatBox(accessories)
end)

 

Hi, why this code above does not work? No errors. Help!

Edited by developa
  • Moderators
Posted

There is an error/warning on line 28 when you write /check, don't talk bull:~.

Use this tutorial to find your problem:

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...