samp.directory
← Skripte und Bibliotheken

Open-GTO/zvehcomp

Vehicle component system

Bibliothek★ 9aktualisiert Juli 2023MITPawnsampctl
Auf GitHub öffnen

Mit sampctl installieren

sampctl package install Open-GTO/zvehcomp

Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.

Im Pawn-Compiler ausprobieren →

Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.

Hängt von 1 Paket ab

Verwendet von 1 Paket

README.md

zvehcomp

Vehicle components useful functions.

Usage

new
    compatible_types[ZVEH_MAX_COMPONENT_TYPES],
    compatible_types_count;

GetVehicleCompatibleTypes(400, compatible_types, compatible_types_count);

for (new i = 0; i < compatible_types_count; i++) {
    printf("%d", compatible_types[i]);
}

Functions

GetVehicleComponentTypeId(name[]);
GetVehicleComponentTypeName(type, name[], size = sizeof(name));
GetVehicleCompatibleTypes(model, array[ZVEH_MAX_COMPONENT_TYPES], &array_size);
GetVehicleComponentName(componentid, cname[], size = sizeof(cname));
GetVehicleCompatibleUpgrades(model, array[ZVEH_MAX_COMPONENTS], &array_size);
IsVehicleUpgradeCompatible(model, componentid);
IsVehicleHaveUpgrades(model);

Directives

DirectiveDefault valueCan be redefined
ZVEH_INVALID_COMPONENT_ID255no
ZVEH_MAX_COMPONENTS48no
ZVEH_MAX_COMPONENT_NAME64no
ZVEH_MAX_COMPONENT_TYPES14no
ZVEH_MAX_COMPONENT_TYPE_NAME16no

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden

Open-GTO/zvehcomp: SA-MP Bibliothek | samp.directory