hoangducvn / MojiaGarages

🅿 Best advanced garages for QB-Core Framework 🚗
50 stars 42 forks source link

radial menu error in console #116

Open twigmasters opened 2 years ago

twigmasters commented 2 years ago

I just tried to install this and I am having an error where the radial menu wont open due to an error with the code I added.

Says something about "attempt to call a nil value (global 'AddOption')

It points to the line "garaIndex = AddOption(GaragesMenu, garaIndex)" from the code to be added to radial menu client/main.lua

Any ideas? I updated to the most current version of radial menu as well.

daddyDUBZ commented 2 years ago

You need to move that function that was added. It is in the wrong position.

twigmasters commented 2 years ago

I found where it needed to go. I didnt know if had to go right above ...

local function SetupSubItems() SetupJobMenu() SetupVehicleMenu() SetupGaragesMenu() end

SmithyDevelopment commented 2 years ago

what do you mean right above it?

SmithyDevelopment commented 2 years ago

is ok i figured out what to do

aprhoona commented 2 years ago

can you tell me what was the solution to the problem