1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-07-28 00:16:34 +02:00
parent 3afa513b4a
commit a31c8cbccb
2 changed files with 5 additions and 5 deletions

View file

@ -93,7 +93,7 @@ config.searchPlayer = {
config.openMaxDistance = { config.openMaxDistance = {
player = 5, -- The distance the player can open the other player inventory player = 5, -- The distance the player can open the other player inventory
trunk = 10, -- The distance the player can open the trunk trunk = 20, -- The distance the player can open the trunk
} }
config.defaultSettings = { config.defaultSettings = {
@ -216,7 +216,7 @@ config.keys = {
} }
config.openTrunkDistance = { -- is checked when the trunk key is pressed config.openTrunkDistance = { -- is checked when the trunk key is pressed
default = 1.5, -- Default open distance default = 2.5, -- Default open distance
models = { -- if the vehicle is too big and you have difficulty opening the trunk, you can increase the distance by adding models here models = { -- if the vehicle is too big and you have difficulty opening the trunk, you can increase the distance by adding models here
[`tug`] = 8.0 [`tug`] = 8.0
} }

View file

@ -792,13 +792,13 @@ CreateThread(function()
local ped = PlayerPedId() local ped = PlayerPedId()
-- Prüfe, ob der Spieler im Ragdoll-Zustand ist -- Prüfe, ob der Spieler im Ragdoll-Zustand ist
if if isPedInRagdoll(ped) then
-- Bestimme den Angreifer
-- Prüfe, ob der Spieler im Ragdoll-Zustand ist -- Prüfe, ob der Spieler im Ragdoll-Zustand ist
if isPedInRagdoll(ped) then if isPedInRagdoll(ped) then
-- Bestimme den Angreifer (verwende den letzten Angreifer, wenn innerhalb von 3 Sekunden) -- Bestimme den Angreifer (verwende den letzten Angreifer, wenn innerhalb von 3 Sekunden)
local attacker = nil
if lastDamager and (GetGameTimer() - lastDamageTime) < 3000 then if lastDamager and (GetGameTimer() - lastDamageTime) < 3000 then
attacker = lastDamager local attacker = lastDamager
-- Prüfe ob die Waffe eine Airsoft-Waffe ist -- Prüfe ob die Waffe eine Airsoft-Waffe ist
if isAirsoftWeapon(lastDamageWeapon) then if isAirsoftWeapon(lastDamageWeapon) then