Zone Einstellung geändert, da ohne Funktion
This commit is contained in:
parent
5af07673d7
commit
9c4920eaf5
3 changed files with 16 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
RegisterNetEvent('mh_garage:storeVehicle')
|
||||
AddEventHandler('mh_garage:storeVehicle', function(zone)
|
||||
AddEventHandler('mh_garage:storeVehicle', function()
|
||||
local ped = PlayerPedId()
|
||||
local coords = GetEntityCoords(ped)
|
||||
local vehicles = GetGamePool('CVehicle')
|
||||
|
@ -16,15 +16,15 @@ AddEventHandler('mh_garage:storeVehicle', function(zone)
|
|||
description = GetRandomCarDescription(),
|
||||
icon = "car",
|
||||
onSelect = function()
|
||||
print(zone.price)
|
||||
if zone.price ~= false then
|
||||
print(CurrentZone.price)
|
||||
if CurrentZone.price ~= false then
|
||||
lib.hideContext("StoredVehicles")
|
||||
|
||||
lib.registerContext({
|
||||
id = "thisVehicle",
|
||||
title = random.name,
|
||||
options = {
|
||||
{title = "Kosten: "..zone.price},
|
||||
{title = "Kosten: "..CurrentZone.price},
|
||||
{title = ""},
|
||||
{
|
||||
title = "Akzeptieren",
|
||||
|
@ -34,14 +34,14 @@ AddEventHandler('mh_garage:storeVehicle', function(zone)
|
|||
QBCore.Functions.TriggerCallback('mh_garage:storedVehicle', function(cb)
|
||||
if cb.status then
|
||||
DeleteVehicle(vehicles[i])
|
||||
Notification(cb.text, cb.type, zone.name)
|
||||
Notification(cb.text, cb.type, CurrentZone.name)
|
||||
else
|
||||
if cb.police and Config.EnabledPolice then
|
||||
exports["roadphone"]:sendDispatch("Hier hat grade jemand versucht, ein Fahrzeug einzuparken.\nDas Zündschloss sah Beschädigt aus.\nKennzeichen: "..veh.plate, 'police', nil)
|
||||
end
|
||||
Notification(cb.text, cb.type)
|
||||
end
|
||||
end, veh, zone)
|
||||
end, veh, CurrentZone)
|
||||
end
|
||||
},
|
||||
{
|
||||
|
@ -57,7 +57,7 @@ AddEventHandler('mh_garage:storeVehicle', function(zone)
|
|||
|
||||
lib.showContext("thisVehicle")
|
||||
else
|
||||
StoredVehicle(vehicles[i], zone)
|
||||
StoredVehicle(vehicles[i], CurrentZone)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue