[Include] Vehicle Extended Functions
#7

Add support for https://sampwiki.blast.hk/wiki/SetVehicleParamsCarWindows and https://sampwiki.blast.hk/wiki/GetVehicleParamsCarDoors

Code:
SetVehicleWindowState(vehicleid, window_id, bool:state);
GetVehicleWindowState(vehicleid, window_id);
Code:
Window's id's:
  1. DRIVER
  2. PASSENGER
  3. BACKLEFF
  4. BACKRIGHT
States:
  1. TRUE - opened.
  2. FALSE - closed.
In addition to these features, it has the maximum compatibility with all cars. Those who have 4 windows, 2 windows and those that do not have windows.

In my GM I have an array which contains the amount of window of each vehicle, I hope it will use you as "IsValidWindow" or something related to that.

Code:
new Windows[212][] =
{
     {4}, // Landstalker
     {2}, // Bravura
     {2}, // Buffalo
     {2}, // Linerunner
     {4}, // Perenniel
     {4}, // Sentinel
     {2}, // Dumper
     {2}, // Firetruck
     {2}, // Trashmaster
     {4}, // Stretch
     {2}, // Manana
     {2}, // Infernus
     {2}, // Voodoo
     {2}, // Pony
     {2}, // Mule
     {2}, // Cheetah
     {2}, // Ambulance
     {2}, // Leviathan
     {4}, // Moonbeam
     {2}, // Esperanto
     {4}, // Taxi
     {4}, // Washington
     {2}, // Bobcat
     {2}, // Mr. Whoopee
     {0}, // BF Injection
     {1}, // Hunter
     {4}, // Premier
     {2}, // Enforcer
     {2}, // Securicar
     {0}, // Banshee
     {0}, // Predator
     {0}, // Bus
     {0}, // Rhino
     {2}, // Barracks
     {2}, // Hotknife
     {0}, // Article trailer
     {2}, // Previon
     {0}, // Coach
     {4}, // Cabbie
     {0}, // Stallion
     {2}, // Rumpo
     {0}, // RC Bandit
     {2}, // Romero
     {2}, // Packer
     {2}, // Monster
     {4}, // Admiral
     {0}, // Squallo
     {2}, // Seasparrow
     {0}, // Pizzaboy
     {0}, // Tram
     {0}, // Article Trailer 2
     {2}, // Turismo
     {0}, // Speeder
     {0}, // Reefer
     {0}, // Tropic
     {2}, // Flatbed
     {2}, // Yankee
     {0}, // Caddy
     {4}, // Solair
     {2}, // Topfun Van (Berkley's RC)
     {0}, // Skimmer
     {0}, // PCJ-600
     {0}, // Faggio
     {0}, // Freeway
     {0}, // RC Baron
     {0}, // RC Raider
     {4}, // Glendale
     {4}, // Oceanic
     {0}, // Sanchez
     {2}, // Sparrow
     {4}, // Patriot
     {0}, // Quad
     {0}, // Coastguard
     {0}, // Dinghy
     {2}, // Hermes
     {2}, // Sabre
     {1}, // Rustler
     {2}, // ZR-350
     {2}, // Walton
     {4}, // Regina
     {0}, // Comet
     {0}, // BMX
     {2}, // Burrito
     {2}, // Camper
     {0}, // Marquis
     {0}, // Baggage
     {0}, // Dozer
     {4}, // Maverick
     {4}, // SAN News Maverick
     {2}, // Rancher
     {4}, // FBI Rancher
     {2}, // Virgo
     {4}, // Greenwood
     {0}, // Jetmax
     {0}, // Hotring Racer
     {2}, // Sandking
     {2}, // Blista Compact
     {4}, // Police Maverick
     {2}, // Boxville
     {2}, // Benson
     {2}, // Mesa
     {0}, // RC Goblin
     {0}, // Hotring Racer A
     {0}, // Hotring Racer B
     {0}, // Bloodring Banger
     {2}, // Rancher Lure
     {2}, // Super GT
     {4}, // Elegant
     {2}, // Journey
     {0}, // Bike
     {0}, // Mountain Bike
     {2}, // Beagle
     {0}, // Cropduster
     {0}, // Stuntplane
     {2}, // Tanker
     {2}, // Roadtrain
     {4}, // Nebula
     {2}, // Majestic
     {2}, // Buccaneer
     {0}, // Shamal
     {1}, // Hydra
     {0}, // FCR-900
     {0}, // NRG-500
     {0}, // HPV1000
     {2}, // Cement Truck
     {2}, // Towtruck
     {2}, // Fortune
     {2}, // Cadrona
     {2}, // FBI Truck
     {4}, // Willard
     {0}, // Forklift
     {0}, // Tractor
     {0}, // Combine Harvester
     {0}, // Feltzer
     {2}, // Remington
     {2}, // Slamvan
     {0}, // Blade
     {0}, // Freight (Train)
     {0}, // Brownstreak (Train)
     {0}, // Vortex
     {4}, // Vincent
     {2}, // Bullet
     {2}, // Clover
     {2}, // Sadler
     {2}, // Firetruck LA
     {2}, // Hustler
     {4}, // Intruder
     {4}, // Primo
     {0}, // Cargobob
     {2}, // Tampa
     {4}, // Sunrise
     {4}, // Merit
     {2}, // Utility van
     {0}, // Nevada
     {2}, // Yosemite
     {0}, // Windsor
     {2}, // Monster "A"
     {2}, // Monster "B"
     {2}, // Uranus
     {2}, // Jester
     {4}, // Sultan
     {4}, // Stratum
     {2}, // Elegy
     {2}, // Raindance
     {0}, // RC Tiger
     {2}, // Flash
     {4}, // Tahoma
     {0}, // Savanna
     {0}, // Bandito
     {0}, // Freight Flat Trailer (Train)
     {0}, // Streak Trailer (Train)
     {0}, // Kart
     {0}, // Mower
     {2}, // Dune
     {2}, // Sweeper
     {0}, // Broadway
     {2}, // Tornado
     {0}, // AT400
     {2}, // DFT-30
     {4}, // Huntley
     {4}, // Stafford
     {0}, // BF-400
     {2}, // Newsvan
     {2}, // Tug
     {0}, // Petrol Trailer
     {4}, // Emperor
     {0}, // Wayfarer
     {2}, // Euros
     {2}, // Hotdog
     {2}, // Club
     {0}, // Freight Box Trailer (Train)
     {0}, // Article Trailer 3
     {0}, // Andromada
     {2}, // Dodo
     {0}, // RC Cam
     {0}, // Launch
     {4}, // Police Car (LSPD)
     {4}, // Police Car (SFPD)
     {4}, // Police Car (LVPD)
     {2}, // Police Ranger
     {2}, // Picador
     {0}, // S.W.A.T
     {2}, // Alpha
     {2}, // Phoenix
     {4}, // Glendale Shit
     {2}, // Sadler Shit
     {0}, // Baggage Trailer "A"
     {0}, // Baggage Trailer "B"
     {0}, // Tug Stairs Trailer
     {2}, // Boxville
     {0}, // Farm Trailer
     {0} // Utility Trailer
};
Reply


Messages In This Thread
Extended Vehicle Functions (EVF V3) - by AbyssMorgan - 02.07.2016, 18:22
Re: Vehicle Extended Functions - by JustMe.77 - 02.07.2016, 22:37
Re: Vehicle Extended Functions - by SetPlayerNameTag - 03.07.2016, 03:41
Re: Vehicle Extended Functions - by Freaksken - 15.08.2016, 10:09
Re: Vehicle Extended Functions - by AbyssMorgan - 15.08.2016, 18:50
Re: Vehicle Extended Functions - by AbyssMorgan - 22.11.2016, 16:35
Re: Vehicle Extended Functions - by Unrea1 - 22.11.2016, 19:01
Re: Vehicle Extended Functions - by Ivan_Ino - 22.11.2016, 19:49
Re: Vehicle Extended Functions - by AbyssMorgan - 24.11.2016, 16:34
Re: Vehicle Extended Functions - by ISmokezU - 24.11.2016, 16:39
Re: Vehicle Extended Functions - by AbyssMorgan - 09.12.2016, 20:03
Re: Vehicle Extended Functions - by Fairuz - 17.04.2017, 08:34
Re: Vehicle Extended Functions - by AbyssMorgan - 17.04.2017, 11:22
Re: Vehicle Extended Functions - by Fairuz - 17.04.2017, 15:10
Re: Vehicle Extended Functions - by AbyssMorgan - 17.04.2017, 15:32
Re: Vehicle Extended Functions - by AbyssMorgan - 17.04.2017, 21:12
Re: Vehicle Extended Functions - by Fairuz - 20.04.2017, 17:01
Re: Vehicle Extended Functions - by Gammix - 20.04.2017, 17:19
Re: Vehicle Extended Functions - by Max_Andolini - 20.04.2017, 17:45
Re: Vehicle Extended Functions - by Mutha_X - 20.04.2017, 20:54
Re: Vehicle Extended Functions - by AbyssMorgan - 25.04.2017, 08:02
Re: Vehicle Extended Functions - by AndreiWow - 25.04.2017, 08:27
Re: Vehicle Extended Functions - by AbyssMorgan - 30.04.2017, 13:52
Re: Vehicle Extended Functions - by Spoookymon - 01.05.2017, 11:02
Re: Vehicle Extended Functions - by AbyssMorgan - 16.05.2017, 07:49
Re: Vehicle Extended Functions - by AbyssMorgan - 19.07.2017, 20:50
Re: Vehicle Extended Functions - by Pottus - 20.07.2017, 01:06
Re: Vehicle Extended Functions - by SmileJack - 20.07.2017, 03:36
Re: Vehicle Extended Functions - by AbyssMorgan - 11.08.2017, 17:01
Re: Vehicle Extended Functions - by AbyssMorgan - 22.08.2017, 15:41
Re: Vehicle Extended Functions - by DevHarden - 04.10.2017, 05:36
Re: Vehicle Extended Functions - by AbyssMorgan - 04.10.2017, 05:45
Re: Vehicle Extended Functions - by DevHarden - 04.10.2017, 06:31
Re: Vehicle Extended Functions - by Zeth - 17.11.2017, 05:20
Re: Vehicle Extended Functions - by AbyssMorgan - 17.11.2017, 15:07
Re: Vehicle Extended Functions - by AbyssMorgan - 19.12.2017, 16:30
Re: Vehicle Extended Functions - by Switel12 - 22.01.2018, 15:21
Re: Vehicle Extended Functions - by Ritzy2K - 22.01.2018, 16:28
Re: Vehicle Extended Functions - by Gammix - 22.01.2018, 18:12
Re: Vehicle Extended Functions - by Switel12 - 22.01.2018, 18:33
Re: Vehicle Extended Functions - by Gammix - 22.01.2018, 18:37
Re: Vehicle Extended Functions - by Ritzy2K - 22.01.2018, 19:36
Re: Vehicle Extended Functions - by KatarinaCalzaghe - 13.02.2018, 13:41
Re: Vehicle Extended Functions - by KatarinaCalzaghe - 13.02.2018, 14:08
Re: Vehicle Extended Functions - by KatarinaCalzaghe - 13.02.2018, 14:30
Re: Vehicle Extended Functions - by KingHual - 13.02.2018, 14:47
Re: Vehicle Extended Functions - by KatarinaCalzaghe - 13.02.2018, 14:53
Re: Vehicle Extended Functions - by PepsiCola23 - 27.02.2018, 09:01
Re: Vehicle Extended Functions - by JustNothing - 31.03.2018, 17:58
Re: Vehicle Extended Functions - by Azaroth - 28.10.2018, 20:18
Re: Vehicle Extended Functions - by AbyssMorgan - 13.10.2019, 14:21
Re: Vehicle Extended Functions - by SkyFlare - 03.06.2020, 14:00

Forum Jump:


Users browsing this thread: 3 Guest(s)