Kütüphane★ 9Tem 2023 güncellendiMITPawnsampctl
GitHub’da açsampctl ile kur
sampctl package install Open-GTO/zvehcomp
Bunu proje klasöründe çalıştır. sampctl paketi ve bağımlı olduklarını indirir.
1 pakete bağımlı
- sampctl/samp-stdlibbu dizinde değil
1 paket kullanıyor
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
| Directive | Default value | Can be redefined |
|---|---|---|
| ZVEH_INVALID_COMPONENT_ID | 255 | no |
| ZVEH_MAX_COMPONENTS | 48 | no |
| ZVEH_MAX_COMPONENT_NAME | 64 | no |
| ZVEH_MAX_COMPONENT_TYPES | 14 | no |
| ZVEH_MAX_COMPONENT_TYPE_NAME | 16 | no |
Bu sayfa GitHub’ın depo hakkında yayımladıklarından oluşturulur. samp.directory kodu barındırmaz. Bu ilanla ilgili bir sorun bildir