#/steal

1 messages · Page 1 of 1 (latest)

rugged sparrow
#

Just comment out the command

weary gull
#

when i hit the kidnap and rob buttons, nothing happens

lunar flameBOT
#

More Effort Required.

We are here to help you, but please, consider how much effort you are putting into your post.
Please provide information such as:

  • What you were doing when the issue occurred
  • What you have tried to resolve the issue
  • Any error messages you have received
  • Any other information you think may be relevant

Please edit your post to include this information, and we will be happy to try help you further.

unkempt galleon
rugged sparrow
#

ox_inventory?

unkempt galleon
rugged sparrow
#

No, you didnt comment out the command.

unkempt galleon
#

im kinda new brother sorry if im sounding stupid

desert void
#

Hi. When you comment something out , adding "--" before every part of code you want to remove you basically disable it temporarily.

What you need to do is:

-- @type function?
-- local function registerCommands()
--    RegisterCommand('steal', openNearbyInventory, false)

--    local function openGlovebox(vehicle)
--        if not IsPedInAnyVehicle(playerPed, false) or not NetworkGetEntityIsNetworked(vehicle) then return end

--        local vehicleHash = GetEntityModel(vehicle)
--        local vehicleClass = GetVehicleClass(vehicle)
--        local checkVehicle = Vehicles.Storage[vehicleHash]

--        -- No storage or no glovebox
--        if (checkVehicle == 0 or checkVehicle == 2) or (not Vehicles.glovebox[vehicleClass] and not Vehicles.glovebox.models[vehicleHash]) then return end

--        local isOpen = client.openInventory('glovebox', { netid = NetworkGetNetworkIdFromEntity(vehicle) })

--        if isOpen then
--            currentInventory.entity = vehicle
--        end
--    end
-- end

To make sure you edited out in your VScode or whatever coding software you are using it should show as green in most cases.

unkempt galleon
#

okay thank u very much

desert void
#

No worries. Good luck.

unkempt galleon
desert void
#

It should be? Is it giving you any errors ?

unkempt galleon
#

yeah i cant open my inventory now

desert void
#

Send me your client.lua that is causing the problem

#

It's easier for me to solve it than to explain tbh

unkempt galleon
#

okay want me to private dm or send it here ?

desert void
#

However you prefer

unkempt galleon
#

sent