Lumaktaw patungo sa pangunahing content

One doc tagged with "vehicle"

Tingnan Lahat ng mga Tag

AddStaticVehicle

Nagdaragdag ng 'static' na sasakyan (na-pre-load ang mga modelo para sa mga manlalaro) sa gamemode.

AddStaticVehicleEx

Nagdaragdag ng 'static' na sasakyan (mga modelo ay paunang na-load para sa mga manlalaro) sa gamemode.

AddVehicleComponent

Nagdaragdag ng 'bahagi' (madalas na tinutukoy bilang 'mod' (pagbabago)) sa isang sasakyan.

ChangeVehiclePaintjob

Baguhin ang paintjob ng sasakyan (para sa mga payak na kulay tingnan ang ChangeVehicleColor).

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.

ManualVehicleEngineAndLights

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

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

This callback is called when a vehicle is destroyed - either by exploding or becoming submerged in water.

OnVehicleMod

This callback is called when a vehicle is modded.

OnVehiclePaintjob

This callback is called when a player previews a vehicle paintjob inside a mod shop.

OnVehicleRespray

This callback is called when a player exits a mod shop, even if the colors weren't changed.

OnVehicleStreamIn

Ang callback na ito ay tinatawag kapag ang isang sasakyan ay na-stream sa client ng isang manlalaro.

OnVehicleStreamOut

Tinatawag ang callback na ito kapag na-stream out ang isang sasakyan para sa client ng player (napakalayo nito kaya hindi nila ito nakikita).

RepairVehicle

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

UpdateVehicleDamageStatus

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