[Include] zvehcomp - useful functions for vehicle components
#1

zvehcomp
About
Useful functions for vehicle components. Very useful for creating tuning systems.

Functions

PHP код:
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); 
Defines
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
Usage
List of all compatible component types:
PHP код:
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]);
} 
Download
- GitHub download page: https://github.com/Open-GTO/zvehcomp/releases
- Wiki (English, Russian): https://github.com/Open-GTO/zvehcomp/wiki
Reply


Messages In This Thread
zvehcomp - useful functions for vehicle components - by ZiGGi - 08.11.2016, 10:38
Re: zvehcomp - useful functions for vehicle components - by ZiGGi - 15.12.2017, 13:14
Re: zvehcomp - useful functions for vehicle components - by Dayrion - 15.12.2017, 14:15
Re: zvehcomp - useful functions for vehicle components - by SimonItaly - 15.12.2017, 18:20
Re: zvehcomp - useful functions for vehicle components - by NaS - 17.12.2017, 17:22
Re: zvehcomp - useful functions for vehicle components - by Cadilab - 09.07.2018, 10:35

Forum Jump:


Users browsing this thread: 1 Guest(s)