- Documentation
- Server functions
- setVehicleEntryPoints
Function
setVehicleEntryPoints
Stores custom entry points for a vehicle (a table of { x, y, z, seat } points).
Syntax
bool setVehicleEntryPoints(vehicle vehicle [, table list = nil])Arguments
vehiclevehicle- The vehicle.
listtable, optional = nil- An array of
{ x = .., y = .., z = .., seat = .. }points;nil= default.
Returns
true on success.
Example
local bus = createVehicle(431, 1760, -1890, 13.6)
setVehicleEntryPoints(bus, { { x = 1761.5, y = -1886, z = 13.6, seat = 1 } })
Notes
State for scripts. The game still enters through its own doors; the points are for your own systems (e.g. entering with a key near a point).