developa Posted July 15, 2017 Share Posted July 15, 2017 (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 July 15, 2017 by developa Link to comment
Moderators IIYAMA Posted July 15, 2017 Moderators Share Posted July 15, 2017 There is an error/warning on line 28 when you write /check, don't talk bull:~. Use this tutorial to find your problem: 1 Link to comment
Gordon_G Posted July 15, 2017 Share Posted July 15, 2017 (edited) It's because you can't handle the /check command, it's already an MTA command, see here : https://wiki.multitheftauto.com/wiki/Server_Commands Edited July 15, 2017 by Gordon_G 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now