[Include] dth_vehcat.inc - Categorized vehicles
#1

dth_vehcat.inc - Categorized vehicles
With this include which is easy to use, you have access to about ten functions to help you know using the model of the vehicle in his category.
Contents :
  • 20 functions
Informations :
Functions return a Boolean value, so true/false (0/1).

PHP код:
native IsModelAirplane(const modelid);
native IsModelHelicopter(const modelid);
native IsModelScooter(const modelid);
native IsModelBicycle(const modelid);
native IsModelMoto(const modelid);
native IsModelQuad(const modelid);
native IsModelTwoWheels(const modelid);
native IsModelConvertible(const modelid);
native IsModelSport(const modelid);
native IsModelLowrider(const modelid);
native IsModelPolice(const modelid);
native IsModelMilitary(const modelid);
native IsModelRescue(const modelid);
native IsModelBoat(const modelid);
native IsModelTrailer(const modelid);
native IsModelTruck(const modelid);
native IsModel4x4(const modelid);
native IsModelRC(const modelid);
native HasModelValidHood(const modelid);
native HasModelValidBoot(const modelid); 
HasModelValidHood/Boot are two functions which allow you to know if through SetVehicleParamsEx hood or boot/trunk opens physically.

If you have to add categories to this include, please manifest it in this topic.
Download :



Reply
#2

Been released several times before. - Nothing new in the code.
Reply
#3

I did this include for a guy, because the includes that I found, didn't optimise and complete.
Reply
#4

was wondering if you can add functions like IsModelGotTrunk(const modelid) - so we can check if the car really got a trunk to store stuff in roleplay servers!
Reply
#5

I don't see what you mean.

So I'm working on two functions : "HasModelValidHood" and "HasModelValidBoot" (Boot/Trunk), because in SAMP every vehicles can't open/close a hood or boot, well with this functions you will be able to know it.
Reply
#6

Two new functions.

PHP код:
native HasModelValidHood(const modelid); 
native HasModelValidBoot(const modelid); 
Quote:
Originally Posted by The god Dutheil
Посмотреть сообщение
HasModelValidHood/Boot are two functions which allow you to know if through SetVehicleParamsEx hood or boot/trunk opens physically.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)