22.11.2016, 19:01
Add support for https://sampwiki.blast.hk/wiki/SetVehicleParamsCarWindows and https://sampwiki.blast.hk/wiki/GetVehicleParamsCarDoors
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:
SetVehicleWindowState(vehicleid, window_id, bool:state); GetVehicleWindowState(vehicleid, window_id);
Code:
Window's id's:States:
- DRIVER
- PASSENGER
- BACKLEFF
- BACKRIGHT
- TRUE - opened.
- FALSE - closed.
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 };