Ana içeriğe geç

"vehicle" ile etiketlenmiş 164 doküman etiketlendi

Tüm Etiketleri Görüntüle

AddStaticVehicle

Oyun moduna bir "statik" araç ekler (modeller oyuncular için önceden yüklenir).

Araç parça yuvaları

Aşağıdaki araç parça yuvaları, GetVehicleComponentInSlot fonksiyonunda kullanılabilir.

Car Component IDs

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

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

Bu geri çağırma, bir oyuncu bir araca binmeye başladığında çağırılır.

OnPlayerExitVehicle

Bu geri çağırma, araçta bulunan bir oyuncu bir araçtan inmeye başladığında çağırılır.

OnTrailerUpdate

Bu fonksiyon, oyuncu aracına römork bağladığında çağrılır.

OnUnoccupiedVehicleUpdate

Bu fonksiyon, oyuncunun istemcisi sürmediği bir aracın konumunu güncellediğinde / senkronize ettiğinde çağrılır.

OnVehicleDamageStatusUpdate

Bu geri çağırma, aracın kapıları, farları, lastikleri veya panelleri gibi araç elemanları hasar aldığında çağrılır.

OnVehicleMod

Bu fonksiyon, herhangi bir araca modifiye uygulandığında çağrılır.

OnVehiclePaintjob

Fonksiyon, oyuncu bulunduğu araca kaplama uygulandığında çağrılır.

OnVehicleRespray

Bu geri çağırma, aracın renkleri değişmemiş olsa bile oyuncu bir mod mağazasından çıktığında çağrılır.

OnVehicleSpawn

Bu geri çağırma bir araç respawn edildiğinde çağrılır.

OnVehicleStreamOut

Bu geri çağırma, bir araç oyuncunun istemcisinden çıktığında (göremeyeceği kadar uzakta olduğunda) çağrılır.

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.