File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -744,6 +744,8 @@ local function registerCommands()
744744 local function openGlovebox (vehicle )
745745 if not IsPedInAnyVehicle (playerPed , false ) or not NetworkGetEntityIsNetworked (vehicle ) then return end
746746
747+ if IsEntityDead (entity ) then return end
748+
747749 local vehicleHash = GetEntityModel (vehicle )
748750 local vehicleClass = GetVehicleClass (vehicle )
749751 local checkVehicle = Vehicles .Storage [vehicleHash ]
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ local backDoorIds = { 2, 3 }
5454function Inventory .CanAccessTrunk (entity )
5555 if cache .vehicle or not NetworkGetEntityIsNetworked (entity ) then return end
5656
57+ if IsEntityDead (entity ) then return end
58+
5759 local vehicleHash = GetEntityModel (entity )
5860 local vehicleClass = GetVehicleClass (entity )
5961 local checkVehicle = Vehicles .Storage [vehicleHash ]
You can’t perform that action at this time.
0 commit comments