codyraves
Snail-
Posts
16 -
Joined
-
Last visited
Content Type
Profiles
Downloads
Release Notes
Store
Everything posted by codyraves
-
RegisterNetEvent('lockpicks:UseLockpick', function(isAdvanced) local ped = PlayerPedId() local pos = GetEntityCoords(ped) local vehicle = QBCore.Functions.GetClosestVehicle() if vehicle == nil or vehicle == 0 then return end if HasKeys(QBCore.Functions.GetPlate(vehicle)) then return end if #(pos - GetEntityCoords(vehicle)) > 2.5 then return end if GetVehicleDoorLockStatus(vehicle) <= 0 then return end -- Corrected the resource name in the call exports['cure-lockpick']:OpenLockpickMinigame(function(success) if success then -- Logic for successful lockpicking TriggerServerEvent('hud:server:GainStress', math.random(1, 4)) lastPickedVehicle = vehicle if GetPedInVehicleSeat(vehicle, -1) == PlayerPedId() then TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', QBCore.Functions.GetPlate(vehicle)) else QBCore.Functions.Notify(Lang:t("notify.vlockpick"), 'success') TriggerServerEvent('qb-vehiclekeys:server:setVehLockState', NetworkGetNetworkIdFromEntity(vehicle), 1) end else -- Logic for failed lockpicking TriggerServerEvent('hud:server:GainStress', math.random(1, 4)) AttemptPoliceAlert("steal") end end, vehicle, isAdvanced and 'advanced' or 'normal') -- Adjust parameters as needed end)
-
-
-
Version 1.0.0
1334 downloads
Here it is boys included in the readme is a qb-vehiclekeys snippet to use the lockpick mini-game when lockpicking vehicles. you can adjust the amount of time it takes to complete the task in the client.lua i will not give support for this. you can use chat gpt to figure out how to use the exports for your own usesFree -
-
-
-
-
-
this resource requires you to change existing code in your server to work its just a NUI callback that you need to code into your server for example you can make a simple chat command using this RegisterCommand("testlockpick", function() TriggerEvent("ac:lockpick:client:openLockpick", "Test Lockpick", "This is a test lockpicking minigame!") end, false) -- You can change "testlockpick" to any command name you prefer. with this you can use /testlockpick and play the mini game i suggest using chatGPT to figure out where in your script should you add the callback
-
-
-
Version 1.0.0
2095 downloads
TO BE CLEAR: this IS NOT the ACTUAL nopixel resources! this is sold on the website qbcore.shop everything works! readme files are in most resources with sql files also There are 200+ resources the only one that needs real work is okokbanking (okokbanking) out of the box it wont load without adding the SQL file to a database its from the website www.qbcore.shop screw them though... they charge money for free scripts version : Build 2699 (The Criminal Enterprise) works on latest qbcore baseFree -