| net.gtaun.shoebill.object.Vehicle |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | INVALID_ID | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
attachTrailer(Vehicle trailer)
Attaches a trailer to the vehicle
| ||||||||||
| abstract static Vehicle |
create(int modelId, float x, float y, float z, int interiorId, int worldId, float angle, int color1, int color2, int respawnDelay)
Create a Vehicle with params.
| ||||||||||
| abstract static Vehicle |
create(int modelId, AngledLocation loc, int color1, int color2, int respawnDelay, boolean addsiren)
Create a Vehicle with params.
| ||||||||||
| abstract static Vehicle |
create(int modelId, Vector3D pos, float angle, int color1, int color2, int respawnDelay)
Create a Vehicle with params.
| ||||||||||
| abstract static Vehicle |
create(int modelId, Vector3D pos, int interiorId, int worldId, float angle, int color1, int color2, int respawnDelay)
Create a Vehicle with params.
| ||||||||||
| abstract static Vehicle |
create(int modelId, Location loc, float angle, int color1, int color2, int respawnDelay)
Create a Vehicle with params.
| ||||||||||
| abstract static Vehicle |
create(int modelId, float x, float y, float z, float angle, int color1, int color2, int respawnDelay)
Create a Vehicle with params.
| ||||||||||
| abstract void |
detachTrailer()
Detaches a trailer from the vehicle (check with isTrailerAttached())
| ||||||||||
| abstract static Collection<Vehicle> | get() | ||||||||||
| abstract static Vehicle | get(int id) | ||||||||||
| abstract float | getAngle() | ||||||||||
| abstract int | getColor1() | ||||||||||
| abstract int | getColor2() | ||||||||||
| abstract VehicleComponent | getComponent() | ||||||||||
| abstract VehicleDamage | getDamage() | ||||||||||
| abstract VehicleState |
getDoors()
Get the state (open or close) of the doors
This function was introduced in 0.3.7
| ||||||||||
| abstract float | getHealth() | ||||||||||
| abstract int | getId() | ||||||||||
| abstract int | getInterior() | ||||||||||
| abstract AngledLocation | getLocation() | ||||||||||
| abstract int | getModelId() | ||||||||||
| abstract String | getModelName() | ||||||||||
| abstract static int |
getPoolSize()
Gets the vehicle's pool size
| ||||||||||
| abstract int | getRespawnDelay() | ||||||||||
| abstract Quaternion | getRotationQuat() | ||||||||||
| abstract int |
getSirenState()
Returns the siren state of the vehicle
| ||||||||||
| abstract VehicleParam | getState() | ||||||||||
| abstract Vehicle |
getTrailer()
Gets the trailer that is attached to the vehicle
| ||||||||||
| abstract Velocity | getVelocity() | ||||||||||
| abstract VehicleState |
getWindows()
Get the state (open or close) of the windows
This function was introduced in 0.3.7
| ||||||||||
| abstract int | getWorld() | ||||||||||
| abstract boolean |
hasSiren()
Returns if the vehicle has been initialized with siren (addsiren parameter)
| ||||||||||
| abstract boolean |
isPlayerIn(Player player)
Checks if a specific player is in the vehicle
| ||||||||||
| abstract boolean | isStatic() | ||||||||||
| abstract boolean |
isStreamedIn(Player forPlayer)
Checks if the vehicle is streamed-in for a specific player
| ||||||||||
| abstract boolean |
isTrailerAttached()
Checks if any trailer is attached to the vehicle
| ||||||||||
| abstract void |
putPlayer(Player player, int seat)
Puts a player into that vehicle
| ||||||||||
| abstract void |
repair()
Sets the health of the vehicle to 1000 and repairs all visual damages
| ||||||||||
| abstract void |
respawn()
Destroys and spawns the vehicle
| ||||||||||
| abstract void | setAngle(float angle) | ||||||||||
| abstract void | setAngularVelocity(Velocity velocity) | ||||||||||
| abstract void |
setColor(int color1, int color2)
Sets the color of the vehicle (https://wiki.sa-mp.com/wiki/Vehicle_Color_IDs)
| ||||||||||
| abstract void |
setDoors(VehicleState vehicleState)
Sets the vehicle's door state
| ||||||||||
| abstract void | setHealth(float health) | ||||||||||
| abstract void | setInterior(int interior) | ||||||||||
| abstract void | setLocation(float x, float y, float z) | ||||||||||
| abstract void | setLocation(Location loc) | ||||||||||
| abstract void | setLocation(AngledLocation loc) | ||||||||||
| abstract void | setLocation(Vector3D pos) | ||||||||||
| abstract void |
setNumberPlate(String number)
Sets the number plate of the vehicle
| ||||||||||
| abstract void |
setPaintjob(int paintjobId)
Sets the paintjob of the vehicle
| ||||||||||
| abstract void |
setParamsForPlayer(Player player, boolean objective, boolean doorsLocked)
Sets different parameters for a specific player
| ||||||||||
| abstract void | setVelocity(Velocity velocity) | ||||||||||
| abstract void |
setWindows(VehicleState vehicleState)
Sets the vehicle's window state
| ||||||||||
| abstract void | setWorld(int worldId) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
net.gtaun.shoebill.object.Destroyable
| |||||||||||
From interface
net.gtaun.shoebill.object.Proxyable
| |||||||||||
Attaches a trailer to the vehicle
| trailer | The trailer to attach |
|---|
Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.
| modelId | Modelid of the Vehicle. |
|---|---|
| x | X-Pos where the Vehicle should be. |
| y | Y-Pos where the Vehicle should be. |
| z | Z-Pos where the Vehicle should be. |
| interiorId | Interiorid where the Vehicle should be. |
| worldId | Worldid where the Vehicle should be. |
| angle | R(otation)-Pos where the Vehicle should be. |
| color1 | First color of the Vehicle. |
| color2 | Second color of the Vehicle. |
| respawnDelay | The time in seconds when the Vehicle gets respawned if there is no player in it. |
| CreationFailedException |
|---|
Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.
| modelId | Modelid of the Vehicle. |
|---|---|
| loc | Location where the Vehicle should be. |
| color1 | First color of the Vehicle. |
| color2 | Second color of the Vehicle. |
| respawnDelay | The time in seconds when the Vehicle gets respawned if there is no player in it. |
| CreationFailedException |
|---|
Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.
| modelId | Modelid of the Vehicle. |
|---|---|
| pos | Vector3D-Pos where the Vehicle should be. |
| angle | R(otation)-Pos where the Vehicle should be. |
| color1 | First color of the Vehicle. |
| color2 | Second color of the Vehicle. |
| respawnDelay | The time in seconds when the Vehicle gets respawned if there is no player in it. |
| CreationFailedException |
|---|
Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.
| modelId | Modelid of the Vehicle. |
|---|---|
| pos | Vector3D-Pos where the Vehicle should be. |
| interiorId | Interiorid where the Vehicle should be. |
| worldId | Worldid where the Vehicle should be. |
| angle | R(otation)-Pos where the Vehicle should be. |
| color1 | First color of the Vehicle. |
| color2 | Second color of the Vehicle. |
| respawnDelay | The time in seconds when the Vehicle gets respawned if there is no player in it. |
| CreationFailedException |
|---|
Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.
| modelId | Modelid of the Vehicle. |
|---|---|
| loc | Location where the Object should be. |
| angle | R(otation)-Pos where the Vehicle should be. |
| color1 | First color of the Vehicle. |
| color2 | Second color of the Vehicle. |
| respawnDelay | The time in seconds when the Vehicle gets respawned if there is no player in it. |
| CreationFailedException |
|---|
Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.
| modelId | Modelid of the Vehicle. |
|---|---|
| x | X-Pos where the Vehicle should be. |
| y | Y-Pos where the Vehicle should be. |
| z | Z-Pos where the Vehicle should be. |
| angle | R(otation)-Pos where the Vehicle should be. |
| color1 | First color of the Vehicle. |
| color2 | Second color of the Vehicle. |
| respawnDelay | The time in seconds when the Vehicle gets respawned if there is no player in it. |
| CreationFailedException |
|---|
Detaches a trailer from the vehicle (check with isTrailerAttached())
Get the state (open or close) of the doors This function was introduced in 0.3.7
Gets the vehicle's pool size
Returns the siren state of the vehicle
Gets the trailer that is attached to the vehicle
Get the state (open or close) of the windows This function was introduced in 0.3.7
Returns if the vehicle has been initialized with siren (addsiren parameter)
Checks if a specific player is in the vehicle
| player | The player to check |
|---|
Checks if the vehicle is streamed-in for a specific player
| forPlayer | The player to check |
|---|
Checks if any trailer is attached to the vehicle
Puts a player into that vehicle
| player | Player to put in |
|---|---|
| seat | Which seat he should sit in |
Sets the health of the vehicle to 1000 and repairs all visual damages
Destroys and spawns the vehicle
Sets the color of the vehicle (https://wiki.sa-mp.com/wiki/Vehicle_Color_IDs)
| color1 | First color |
|---|---|
| color2 | Second color |
Sets the vehicle's door state
| vehicleState | The new state |
|---|
Sets the number plate of the vehicle
| number | The String to display on the plate |
|---|
Sets the paintjob of the vehicle
| paintjobId | The paintjobid (https://wiki.sa-mp.com/wiki/Paintjob) |
|---|
Sets different parameters for a specific player
| player | Which player should be affected |
|---|---|
| objective | If the objective should be open / closed |
| doorsLocked | If the doors should be locked |
Sets the vehicle's window state
| vehicleState | The new state |
|---|