Merge branch 'master' of https://git.evolution-state-life.de/Evolution-State-Life/Main
This commit is contained in:
		
						commit
						6d90da2841
					
				
					 4 changed files with 31 additions and 17 deletions
				
			
		| 
						 | 
					@ -20,7 +20,7 @@ AddEventHandler('mh_garage:storeVehicle', function()
 | 
				
			||||||
                icon = "car",
 | 
					                icon = "car",
 | 
				
			||||||
                onSelect = function()
 | 
					                onSelect = function()
 | 
				
			||||||
                    print(CurrentZone.price)
 | 
					                    print(CurrentZone.price)
 | 
				
			||||||
                    if CurrentZone.price ~= false then
 | 
					                    if CurrentZone.price ~= nil then
 | 
				
			||||||
                        lib.hideContext("StoredVehicles")
 | 
					                        lib.hideContext("StoredVehicles")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        lib.registerContext({
 | 
					                        lib.registerContext({
 | 
				
			||||||
| 
						 | 
					@ -62,7 +62,18 @@ AddEventHandler('mh_garage:storeVehicle', function()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        lib.showContext("thisVehicle")
 | 
					                        lib.showContext("thisVehicle")
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                       StoredVehicle(vehicles[i], CurrentZone)
 | 
					                        QBCore.Functions.TriggerCallback('mh_garage:storedVehicle', function(cb)
 | 
				
			||||||
 | 
					                            if cb.status then
 | 
				
			||||||
 | 
					                                TriggerServerEvent('mh_Parking:deleteVehicle', mods.plate, NetworkGetNetworkIdFromEntity(vehicles[i]))
 | 
				
			||||||
 | 
					                                --DeleteVehicle(vehicles[i])
 | 
				
			||||||
 | 
					                                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, mods, CurrentZone)
 | 
				
			||||||
                    end
 | 
					                    end
 | 
				
			||||||
                end
 | 
					                end
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,7 +7,7 @@ Config.PriceModel = false
 | 
				
			||||||
Config.CallKeyVehicles = true
 | 
					Config.CallKeyVehicles = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Config.Verwaltung = {
 | 
					Config.Verwaltung = {
 | 
				
			||||||
    garage = true,
 | 
					    garage = false,
 | 
				
			||||||
    garage_change = 1000, -- Kosten um das Fahrzeug in einer anderen Garage zu versetzen.
 | 
					    garage_change = 1000, -- Kosten um das Fahrzeug in einer anderen Garage zu versetzen.
 | 
				
			||||||
    garage_time = 10, -- Zeit in Minuten bis das Fahrzeug in der neuen Garage ist!
 | 
					    garage_time = 10, -- Zeit in Minuten bis das Fahrzeug in der neuen Garage ist!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -23,7 +23,7 @@ Config.Verwaltung = {
 | 
				
			||||||
Config.Zonen = {
 | 
					Config.Zonen = {
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        name = "Meetingpoint",
 | 
					        name = "Meetingpoint",
 | 
				
			||||||
        price = 10, --pro FZ
 | 
					        price = nil, --pro FZ
 | 
				
			||||||
        NPC = {
 | 
					        NPC = {
 | 
				
			||||||
            spawn = vector4(236.1599, -798.8522, 29.3653, 181.7547),
 | 
					            spawn = vector4(236.1599, -798.8522, 29.3653, 181.7547),
 | 
				
			||||||
            model = "s_m_m_security_01",
 | 
					            model = "s_m_m_security_01",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,18 +10,21 @@ table.insert(Integrations.modules[moduleType], moduleName)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- This is just an EXAMPLE, so you have to edit it to make it work
 | 
					-- This is just an EXAMPLE, so you have to edit it to make it work
 | 
				
			||||||
Integrations[moduleType][moduleName].getSocietyMoney = function(societyName)
 | 
					Integrations[moduleType][moduleName].getSocietyMoney = function(societyName)
 | 
				
			||||||
    local money = exports['example-banking']:getMoney(societyName)
 | 
					    --local money = exports['example-banking']:getMoney(societyName)
 | 
				
			||||||
 | 
					    local money = exports['okokBanking']:GetAccount(societyName)
 | 
				
			||||||
    return money
 | 
					    return money
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- This is just an EXAMPLE, so you have to edit it to make it work
 | 
					-- This is just an EXAMPLE, so you have to edit it to make it work
 | 
				
			||||||
Integrations[moduleType][moduleName].giveMoneyToSociety = function(societyName, amount)
 | 
					Integrations[moduleType][moduleName].giveMoneyToSociety = function(societyName, amount)
 | 
				
			||||||
    local success = exports['example-banking']:giveMoney(societyName, amount)
 | 
					    --local success = exports['example-banking']:giveMoney(societyName, amount)
 | 
				
			||||||
 | 
					    local success = exports['okokBanking']:AddMoney(societyName, amount)
 | 
				
			||||||
    return success -- Return true if success, false if not
 | 
					    return success -- Return true if success, false if not
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- This is just an EXAMPLE, so you have to edit it to make it work
 | 
					-- This is just an EXAMPLE, so you have to edit it to make it work
 | 
				
			||||||
Integrations[moduleType][moduleName].removeMoneyFromSociety = function(societyName, amount)
 | 
					Integrations[moduleType][moduleName].removeMoneyFromSociety = function(societyName, amount)
 | 
				
			||||||
    local success = exports['example-banking']:removeMoney(societyName, amount)
 | 
					    --local success = exports['example-banking']:removeMoney(societyName, amount)
 | 
				
			||||||
 | 
					    local success = exports['okokBanking']:RemoveMoney(societyName, amount)
 | 
				
			||||||
    return success -- Return true if success, false if not
 | 
					    return success -- Return true if success, false if not
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
--[[
 | 
					--[[
 | 
				
			||||||
BY RX Scripts © rxscripts.xyz
 | 
					BY RX Scripts <20> rxscripts.xyz
 | 
				
			||||||
--]]
 | 
					--]]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Config = {}
 | 
					Config = {}
 | 
				
			||||||
| 
						 | 
					@ -12,8 +12,8 @@ Config.ReceiveMoney = {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Config.PlayerInvoices = {
 | 
					Config.PlayerInvoices = {
 | 
				
			||||||
    enabled = true, -- Spieler können anderen Spielern Rechnungen senden
 | 
					    enabled = true, -- Spieler k<>nnen anderen Spielern Rechnungen senden
 | 
				
			||||||
    maxInvoices = 5, -- Maximal ausstehende Rechnungen pro Spieler
 | 
					    maxInvoices = 5000, -- Maximal ausstehende Rechnungen pro Spieler
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Config.JobInvoices = {
 | 
					Config.JobInvoices = {
 | 
				
			||||||
| 
						 | 
					@ -21,11 +21,11 @@ Config.JobInvoices = {
 | 
				
			||||||
        label = 'Polizei',
 | 
					        label = 'Polizei',
 | 
				
			||||||
        requiredGrade = 2,
 | 
					        requiredGrade = 2,
 | 
				
			||||||
        presetInvoices = {
 | 
					        presetInvoices = {
 | 
				
			||||||
            { name = 'Rotes Licht überfahren', amount = 250, reason = 'Rotes Licht überfahren' },
 | 
					            { name = 'Rotes Licht <20>berfahren', amount = 250, reason = 'Rotes Licht <20>berfahren' },
 | 
				
			||||||
            { name = 'Falsches Parken', amount = 150, reason = 'Falsches Parken' },
 | 
					            { name = 'Falsches Parken', amount = 150, reason = 'Falsches Parken' },
 | 
				
			||||||
            { name = 'Zu schnelles Fahren', amount = 300, reason = 'Zu schnelles Fahren' },
 | 
					            { name = 'Zu schnelles Fahren', amount = 300, reason = 'Zu schnelles Fahren' },
 | 
				
			||||||
            { name = 'Gefährliches Fahren', amount = 500, reason = 'Gefährliches Fahren' },
 | 
					            { name = 'Gef<65>hrliches Fahren', amount = 500, reason = 'Gef<65>hrliches Fahren' },
 | 
				
			||||||
            { name = 'Körperverletzung', amount = 1000, reason = 'Körperverletzung' },
 | 
					            { name = 'K<>rperverletzung', amount = 1000, reason = 'K<>rperverletzung' },
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    ['ambulance'] = {
 | 
					    ['ambulance'] = {
 | 
				
			||||||
| 
						 | 
					@ -47,17 +47,17 @@ Config.JobInvoices = {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Config.AutoPay = {
 | 
					Config.AutoPay = {
 | 
				
			||||||
    enabled = true, -- Automatisches Bezahlen nach bestimmter Zeit
 | 
					    enabled = false, -- Automatisches Bezahlen nach bestimmter Zeit
 | 
				
			||||||
    hours = 24, -- Nach wie vielen Stunden eine Rechnung automatisch bezahlt wird
 | 
					    hours = 24, -- Nach wie vielen Stunden eine Rechnung automatisch bezahlt wird
 | 
				
			||||||
    feePercentagePerHour = 0.05 -- Aufschlag pro Stunde (0.05 = 5 %)
 | 
					    feePercentagePerHour = 0.05 -- Aufschlag pro Stunde (0.05 = 5 %)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Config.Commands = {
 | 
					Config.Commands = {
 | 
				
			||||||
    openBilling = 'billing', -- /billing öffnet das Rechnungsmenü
 | 
					    openBilling = 'billing', -- /billing <20>ffnet das Rechnungsmen<65>
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Config.Keybinds = {
 | 
					Config.Keybinds = {
 | 
				
			||||||
    openBilling = 'F7', -- Taste zum Öffnen des Rechnungsmenüs (false = deaktivieren)
 | 
					    openBilling = 'F7', -- Taste zum <20>ffnen des Rechnungsmen<65>s (false = deaktivieren)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Config.UI = {
 | 
					Config.UI = {
 | 
				
			||||||
| 
						 | 
					@ -79,7 +79,7 @@ Config.UI = {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--[[
 | 
					--[[
 | 
				
			||||||
    Passe diesen Teil nur an, wenn du die Namen der Ressourcen geändert hast
 | 
					    Passe diesen Teil nur an, wenn du die Namen der Ressourcen ge<67>ndert hast
 | 
				
			||||||
--]]
 | 
					--]]
 | 
				
			||||||
Resources = {
 | 
					Resources = {
 | 
				
			||||||
    FM = { name = 'fmLib', export = 'new' },
 | 
					    FM = { name = 'fmLib', export = 'new' },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue