Zum Inhalt springen

Config

Config.lua

Config = {}
-- Standard-Einstellungen
Config.Locale = 'en' -- Wähle die Sprache aus. Standard: en
Config.CheckVersion = true -- Diese Einstellung überprüft, ob die Script-Version aktuell ist. Grew_Versionchecker wird benötigt
Config.KeyControle = 38 -- Standard: 38 (E)
-- Blip und NPCs
Config.NPCsDefaultType = 4 -- Standard-NPC-Typ (z. B. für Verhalten oder Aussehen der NPCs)
Config.EnableBlips = true -- Blips auf der Karte aktivieren (zeigt NPC-Standorte)
Config.InteractionRadius = 2 -- Radius, innerhalb dessen Spieler mit NPCs interagieren können
Config.DrawRange = 6 -- Entfernung, aus der NPCs und Blips sichtbar sind
Config.Enable3DText = true -- 3D-Text über NPCs anzeigen (z. B. Interaktionshinweise)
-- Erstelle NPCs
Config.NPCS = {
{
id = 'ambulance_entry', -- Eindeutige ID des NPCs (für Referenz oder Funktionen)
model = "s_m_m_scientist_01", -- NPC-Modell (https://docs.fivem.net/docs/game-references/ped-models/)
type = nil, -- NPC-Typ (falls spezifische Verhaltenstypen definiert sind)
pos = vector3(299.2581, -584.6854, 42.2608), -- Position des NPCs im Spiel
head = 64.4316, -- Blickrichtung des NPCs (Rotation)
title = nil, -- Titel des NPCs (Standard: 'blip_name' aus der en.lua)
helpnotification = nil, -- Interaktionshinweis (Standard: 'help_notification' oder 'help_notification_3D')
blipsetting = {
enable = true, -- Blip aktivieren (Standard: true)
sprite = nil, -- Icon für den Blip (Standard: 366)
display = nil, -- Anzeige-Modus des Blips (Standard: 2 - https://docs.fivem.net/docs/game-references/blips)
color = nil, -- Farbe des Blips (Standard: 38 - https://docs.fivem.net/docs/game-references/blips/#blip-colors)
scale = nil, -- Größe des Blips (Standard: 1)
},
buysettings = {
enable = true, -- Kauf aktivieren
cost = 500, -- Kosten für die Interaktion
EnableAccounts = {'money', 'bank'}, -- Akzeptierte Zahlungsmethoden
}
},
[...]
}

Standard-NPC-Typen (PedTypes)

Ich habe die Liste aus dem oben genannten Link hier für dich eingefügt.
Die neueste Aktualisierung dieser Informationen ist vom 01.11.2024.

enum ePedType {
PED_TYPE_PLAYER_0 = 0,
PED_TYPE_PLAYER_1 = 1,
PED_TYPE_NETWORK_PLAYER = 2,
PED_TYPE_PLAYER_2 = 3,
PED_TYPE_CIVMALE = 4,
PED_TYPE_CIVFEMALE = 5,
PED_TYPE_COP = 6,
PED_TYPE_GANG_ALBANIAN = 7,
PED_TYPE_GANG_BIKER_1 = 8,
PED_TYPE_GANG_BIKER_2 = 9,
PED_TYPE_GANG_ITALIAN = 10,
PED_TYPE_GANG_RUSSIAN = 11,
PED_TYPE_GANG_RUSSIAN_2 = 12,
PED_TYPE_GANG_IRISH = 13,
PED_TYPE_GANG_JAMAICAN = 14,
PED_TYPE_GANG_AFRICAN_AMERICAN = 15,
PED_TYPE_GANG_KOREAN = 16,
PED_TYPE_GANG_CHINESE_JAPANESE = 17,
PED_TYPE_GANG_PUERTO_RICAN = 18,
PED_TYPE_DEALER = 19,
PED_TYPE_MEDIC = 20,
PED_TYPE_FIREMAN = 21,
PED_TYPE_CRIMINAL = 22,
PED_TYPE_BUM = 23,
PED_TYPE_PROSTITUTE = 24,
PED_TYPE_SPECIAL = 25,
PED_TYPE_MISSION = 26,
PED_TYPE_SWAT = 27,
PED_TYPE_ANIMAL = 28,
PED_TYPE_ARMY = 29
};