forked from Simnation/Main
ed
This commit is contained in:
parent
3afa513b4a
commit
a31c8cbccb
2 changed files with 5 additions and 5 deletions
|
@ -93,7 +93,7 @@ config.searchPlayer = {
|
|||
|
||||
config.openMaxDistance = {
|
||||
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 = {
|
||||
|
@ -216,7 +216,7 @@ config.keys = {
|
|||
}
|
||||
|
||||
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
|
||||
[`tug`] = 8.0
|
||||
}
|
||||
|
|
|
@ -792,13 +792,13 @@ CreateThread(function()
|
|||
local ped = PlayerPedId()
|
||||
|
||||
-- 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
|
||||
if isPedInRagdoll(ped) then
|
||||
-- Bestimme den Angreifer (verwende den letzten Angreifer, wenn innerhalb von 3 Sekunden)
|
||||
local attacker = nil
|
||||
if lastDamager and (GetGameTimer() - lastDamageTime) < 3000 then
|
||||
attacker = lastDamager
|
||||
local attacker = lastDamager
|
||||
|
||||
-- Prüfe ob die Waffe eine Airsoft-Waffe ist
|
||||
if isAirsoftWeapon(lastDamageWeapon) then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue