Comments (10)
This is a issue with the Radial Menu to apply the vehicle. When using a external ExtraMenu BEFORE using Radial, it works as intended.
from qb-radialmenu.
Having a similar issue, mine doesn't show up at all.
from qb-radialmenu.
The error keeps popping up. If you change the code for the previous one, it works fine.
RegisterNetEvent('qb-radialmenu:client:setExtra')
AddEventHandler('qb-radialmenu:client:setExtra', function(data)
local string = data.id
local replace = string:gsub("extra", "")
local extra = tonumber(replace)
local ped = PlayerPedId()
local veh = GetVehiclePedIsIn(ped)
local enginehealth = 1000.0
local bodydamage = 1000.0
if veh ~= nil then
local plate = GetVehicleNumberPlateText(closestVehicle)
if GetPedInVehicleSeat(veh, -1) == PlayerPedId() then
if DoesExtraExist(veh, extra) then
if IsVehicleExtraTurnedOn(veh, extra) then
enginehealth = GetVehicleEngineHealth(veh)
bodydamage = GetVehicleBodyHealth(veh)
SetVehicleExtra(veh, extra, 1)
SetVehicleEngineHealth(veh, enginehealth)
SetVehicleBodyHealth(veh, bodydamage)
QBCore.Functions.Notify('Extra ' .. extra .. ' Desactivado', 'error', 2500)
else
enginehealth = GetVehicleEngineHealth(veh)
bodydamage = GetVehicleBodyHealth(veh)
SetVehicleExtra(veh, extra, 0)
SetVehicleEngineHealth(veh, enginehealth)
SetVehicleBodyHealth(veh, bodydamage)
QBCore.Functions.Notify('Extra ' .. extra .. ' Activado', 'success', 2500)
end
else
QBCore.Functions.Notify('Extra ' .. extra .. ' no está presente en este vehículo ', 'error', 2500)
end
else
QBCore.Functions.Notify('¡No eres conductor de un vehículo!', 'error', 2500)
end
end
end)
from qb-radialmenu.
Does anyone have a specific vehicle and extra they tried that I can test it with?
from qb-radialmenu.
Does anyone have a specific vehicle and extra they tried that I can test it with?
I know for certain it was doing it on the OCRP Law Enforcement Pack 110%, but I didnt use many other modded vehicles at the time.
from qb-radialmenu.
I don't have any addon cars, test some gta cars
from qb-radialmenu.
They work fine for me
from qb-radialmenu.
it seems to only be an issue with addon vehicles.
wouldnt it be smarter to just add Vehicle Extras to choose at bennys so that they also get actually saved into the DB?
from qb-radialmenu.
No, if it's an issue with addon vehicles, it means that something is wrong in either the carcols or carvariations meta files
from qb-radialmenu.
do you guys have any fix yet? i still need to /fix the vehicle for the extras to show up onto the car
from qb-radialmenu.
Related Issues (20)
- [BUG] Clothing.lua Error HOT 5
- [BUG] Emergency Button while Dead Error HOT 1
- [BUG] QB-Radialmenu UI Issue
- [BUG] Windows Defender false positive. HOT 1
- [BUG] HOT 7
- [BUG] radialmenu stuck ui HOT 10
- [SUGGESTION] Config option for Toggle or Hold to open radial menu HOT 1
- [BUG] Both (Extra items) Gloves and Visor not working + errors HOT 4
- [SUGGESTION] Clean up vehicle seat layout HOT 1
- [BUG] /putintrunk notifies the kidnapped player trunk is closed HOT 2
- Radial menu gets stuck on a cursor when closed HOT 1
- [BUG] menu opens more times
- [BUG] HOT 1
- script error HOT 8
- Submenu in radialmenu HOT 1
- Error F8 Change the seat in the car HOT 1
- [BUG] Get in Trunk
- [BUG] Warning: Missing phrase for key
- [BUG] - Interactions not working HOT 2
- [SUGGESTION]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qb-radialmenu.