Skip to content

Commit

Permalink
Merge pull request #16 from PenguScript/PenguScript-patch-1
Browse files Browse the repository at this point in the history
Pengu script patch 1
  • Loading branch information
PenguScript authored Feb 29, 2024
2 parents 264f8fa + 95f83a9 commit f5a6052
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/delivery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ RegisterNetEvent('pengu_gruppe6delivery:StartFirstJob', function(args)
TriggerEvent('pengu_gruppe6delivery:Notify', "Go to the vehicle with the marker above it!", "There's an orange marker above the vehicle you are going to use.", "primary", 4000)
local vehicle = args["veh"]
DoingDeliveries = true
TriggerEvent("vehiclekeys:client:SetOwner", args["plate"])
Config.GiveKeys(args["plate"])
while not IsPedSittingInAnyVehicle(cache.ped or PlayerPedId()) and DoingDeliveries == true do
DrawMarker(2, args["vec"].x, args["vec"].y, args["vec"].z+3.65, 0.0,0.0,0.0,0.0,180.0,0.0,1.0,1.0,1.0,255,165,0,70,true,false, 2, true, nil, nil, false)
Wait(1)
Expand Down
6 changes: 5 additions & 1 deletion config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Config.Progressbar = 'ox' -- 'qb' or 'ox'
Config.Inventory = 'ox' -- 'qb' or 'ox'
Config.Skillcheck = 'ox' -- 'ps' or 'ox'

Config.FuelResource = 'qb_tk_gasstations'
Config.FuelResource = 'LegacyFuel'

Config.GiveKeys = function(plate)
TriggerEvent("qb-vehiclekeys:server:AcquireVehicleKeys", plate)
end

Config.StartDeliveryPed = {
Coords = vector4(-4.22, -659.18, 32.48, 183.34),
Expand Down

0 comments on commit f5a6052

Please sign in to comment.