#/steal
1 messages · Page 1 of 1 (latest)
when i hit the kidnap and rob buttons, nothing happens
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.
Hhow would i do that brother ive never done it before
ox_inventory?
yesir
is this right ?
No, you didnt comment out the command.
can i just remove the command ?is that what u mean sorry 😢
im kinda new brother sorry if im sounding stupid
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.
okay thank u very much
No worries. Good luck.
this is okay ?
It should be? Is it giving you any errors ?
Send me your client.lua that is causing the problem
It's easier for me to solve it than to explain tbh
okay want me to private dm or send it here ?
However you prefer
sent