Skip to content

Commit

Permalink
fix(client): seatbelt detachment
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Mar 15, 2023
1 parent 7dde309 commit e7fa278
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ end)
RegisterCommand(config.commands['car_seatbelt'], function()
if Hud.vehicle ~= 0 then
if Hud:haveseatbelt() then
print(Hud.belt,config.seatbelt_2)
if Hud.belt then
SetTimeout(1000,function()
Hud.belt = false
Expand Down Expand Up @@ -633,7 +634,9 @@ RegisterCommand(config.commands['car_seatbelt'], function()
DisableControlAction(27, 75, true) -- Disable exit vehicle when Driving
Wait(4)
end
Hud.belt = false
if config.seatbelt_2 then
Hud.belt = false
end
--SendNuiSeatBelt()
end)
end
Expand Down
1 change: 1 addition & 0 deletions conf/vehicle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ config.available_carui = {
['minimal'] = true,
['modern'] = true,
}
config.seatbelt_2 = false
config.enable_carui_perclass = true -- enable/disable the Vehicle Class UI config (if this is enable , the config.carui will be ignored)
config.carui_perclass = {
--change and define each class to show the vehicle UI class
Expand Down

0 comments on commit e7fa278

Please sign in to comment.