إنتقل إلى المحتوى الرئيسي

164 مستندًا موسومًا مستند موسوم بـ "vehicle"

عرض كل الوسوم

AddStaticVehicle

Adds a 'static' vehicle (models are pre-loaded for players) to the gamemode.

AddStaticVehicleEx

Adds a 'static' vehicle (models are pre-loaded for players) to the gamemode.

AddVehicleComponent

Adds a 'component' (often referred to as a 'mod' (modification)) to a vehicle.

Car Component IDs

Information about car component IDs, model names, parts, types, supported vehicles and costs.

Component slots

The following car mod types can be used to work with the GetVehicleComponentInSlot function.

Damage Status

Information about vehicle damage status and sample code.

Door States

Information about byte size and its corresponding door state bits.

GetVehicleDistanceFromPoint

This function can be used to calculate the distance (as a float) between a vehicle and another map coordinate.

GetVehicleModelInfo

Retrieve information about a specific vehicle model such as the size or position of seats.

GetVehicles

Gets an array variable of the IDs of the created vehicles on the server.

Light States

Information about byte size and its corresponding light state bits.

ManualVehicleEngineAndLights

Use this function before any player connects (OnGameModeInit) to tell all clients that the script will control vehicle engines and lights.

OnPlayerEnterVehicle

This callback is called when a player starts to enter a vehicle, meaning the player is not in vehicle yet at the time this callback is called.

OnTrailerUpdate

This callback is called when a player sent a trailer update.

OnUnoccupiedVehicleUpdate

This callback is called when a player's client updates/syncs the position of a vehicle they're not driving.

OnVehicleDamageStatusUpdate

This callback is called when a vehicle element such as doors, tyres, panels, or lights change their damage status.

OnVehicleDeath

يتم إستدعاء هذا الكالباك عند يتم تدمير السيارة

OnVehicleMod

This callback is called when a vehicle is modded.

OnVehiclePaintjob

يتم إستدعاء هذا الكالباك عند تغيير طلاء السيارة في مرآب التعديل

OnVehicleRespray

يتم إستدعاء هذا الكالباك عند خروج اللاعب من مرآب تعديل السيارات حتى إذا كان طلاء السيارة لم يتغير

OnVehicleSirenStateChange

يتم إستدعاء هذا الكال باك عند تفعيل صفارة الإنذار للسيارة

OnVehicleSpawn

يتم إستدعاء هذا الكال باك عند رسبنت السبارة

OnVehicleStreamIn

يتم استدعاء هذا الاستدعاء أو الكال باك عند تدفق سيارة بواسطة كلاينت اللاعب

OnVehicleStreamOut

يتم استدعاء هذا الاستدعاء أو الكال باك عند خروج السيارة بواسطة كلاينت اللاعب

Paintjobs

Paint Jobs that can be applied on specific vehicles.

Panel States

Information about byte size and its corresponding panel state bits.

RepairVehicle

Fully repairs a vehicle, including visual damage (bumps, dents, scratches, popped tires etc.).

Tire States

Information about byte size and its corresponding tire state bits.

UpdateVehicleDamageStatus

Sets the various visual damage statuses of a vehicle, such as popped tires, broken lights and damaged panels.

Vehicle Color IDs

As of SA-MP 0.3x, the following information is outdated. Vehicle colour IDs from 128 to 255 have been intentionally replaced with new colours. Check the second picture for the up to date colours for 0.3x.