boiidevelopment / boii-rgbcontroller-qb

FiveM Simple RGB Controller for QBCore
GNU General Public License v3.0
5 stars 1 forks source link

RGB Controller Does not Show UI #2

Open guigasthepro opened 1 year ago

guigasthepro commented 1 year ago

Uppon kit install , we try to enter the rgb controller and nothing happens, teste with our vehicles and spawned too. No errors what so ever

MDGamesmaster commented 6 months ago

same here

kaneit commented 5 months ago

To resolve this issue.

it was kind of dead simple to be honest. because QBcore has changed so much. the export event had been changed.

so here is what you need to do

go to boii-rgbcontroller\shared\config.lua look for GarageEvent = 'qb-garage:server:checkVehicleOwner' -- The name of your checkvehicleowner callback. Default; qb-garage:server:checkVehicleOwner

and change it to GarageEvent = 'qb-garages:server:GetPlayerVehicles' -- The name of your checkvehicleowner callback. Default; qb-garage:server:checkVehicleOwner

All that has been changed is the export event.

oh also..... No it does not matter if you have got boii-rgbcontroller from Boii-development's Tebex or Github page. i've tested it on both. and works flawlessly.

Pistolion commented 1 month ago

mine still do not work

kaneit commented 1 month ago

mine still do not work

Assuming you are using qbcore. boii-rgbcontroller\shared\config.lua should be as follows.

----------------------------------
--<!>-- BOII | DEVELOPMENT --<!>--
----------------------------------

Config = {}

-- Core settings for renamed cores
Config.CoreSettings = {
    Core = 'QBCore', -- The name of your core. Default; QBCore
    CoreFolder = 'qb-core', -- The name of your core folder. Default; qb-core
    GarageEvent = 'qb-garages:server:GetPlayerVehicles' -- The name of your checkvehicleowner callback. Default; qb-garage:server:checkVehicleOwner
}

-- Item settings
Config.Items = {
    Controller = 'rgbc', -- The name of your controller item required to open ui
    Kit = 'rgbkit', -- The name of your kit item required to install
    Time = math.random(5,10) -- Time in seconds to install kit
}

-- Animation settings
Config.Animations = {
    Fit = {
        Dict = 'mini@repair', -- Animation dictonary
        Anim = 'fixing_a_ped', -- Animation
        Flags = 49 -- Animation flags
    }
}
kaneit commented 1 month ago

also as you can see here. https://github.com/qbcore-framework/qb-garages/blob/924fc2fc217468c653697e3d8adf0596e36997c4/server/main.lua#L228

kaneit commented 1 month ago

If copy and paste of code isn't working for you. try this. i've tested this on a fresh install of the latest qb-core as of today and works.

boii-rgbcontroller.zip

kaneit commented 1 month ago

if this still doesn't work for you. then there must be something wrong with your qb-core or you have a resource that is interfering with boii-developments rgbcontroller resource.