Chuyển tới nội dung chính

120 tài liệu đã gắn thẻ được gắn thẻ "vehicle"

Xem tất cả thẻ

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.

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.

OnPlayerEnterVehicle

Callback này được gọi khi một người chơi bắt đầu vào một phương tiện, có nghĩa là người chơi chưa vào phương tiện vào thời điểm callback này được gọi.

OnPlayerExitVehicle

Callback này được gọi khi một người chơi bắt đầu thoát khỏi một phương tiện.

OnTrailerUpdate

Callback này được gọi khi một người chơi gửi cập nhật về trailer.

OnUnoccupiedVehicleUpdate

Callback này được gọi khi client của người chơi cập nhật/sync vị trí của một chiếc xe mà họ không lái.

OnVehicleDamageStatusUpdate

Callback này được gọi khi một phần tử của xe như cửa, lốp, tấm chắn hoặc đèn thay đổi trạng thái hư hỏng của chúng.

OnVehicleDeath

Callback này được gọi khi một xe bị phá hủy - có thể là do nổ hoặc bị ngập trong nước.

OnVehicleMod

Callback này được gọi khi một xe được tùy chỉnh.

OnVehiclePaintjob

Callback này được gọi khi một người chơi xem trước lớp sơn của một xe trong cửa hàng tùy chỉnh.

OnVehicleRespray

Callback này được gọi khi một người chơi rời khỏi cửa hàng tùy chỉnh, ngay cả khi không thay đổi màu sắc.

OnVehicleSpawn

Callback này được gọi khi một xe hồi sinh (respawn).

OnVehicleStreamIn

Callback này được gọi khi một xe được stream đến client của người chơi.

OnVehicleStreamOut

Callback này được gọi khi một xe bị stream ra khỏi client của người chơi (quá xa để người chơi có thể thấy).

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.