Vehicle::getOccupant: Difference between revisions
CocaColaBear (talk | contribs) (Created page with "{{Incomplete Functions}}") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{ | __TOC__ | ||
{{ServersideJsFunction}} | |||
This function returns the player sitting in the vehicle's seat. | |||
{{JSContainer| | |||
==Syntax== | |||
<syntaxhighlight lang="javascript">vehicle.getOccupant(seatIndex);</syntaxhighlight> | |||
=== Required Arguments === | |||
*'''seatIndex:''' int | |||
===Return value=== | |||
*'''Object''': Player | |||
==Example== | |||
<syntaxhighlight lang="javascript"> | |||
//To do | |||
</syntaxhighlight> | |||
}} | |||
==See also== | |||
{{Vehicle_definition}} | |||
[[Category:TODO: Example]] | |||
Latest revision as of 16:19, 25 April 2022
Server-Side Function
This function returns the player sitting in the vehicle's seat.
JavaScript Syntax
Syntax
vehicle.getOccupant(seatIndex);
Required Arguments
- seatIndex: int
Return value
- Object: Player
Example
//To do
See also
- Functions
- Vehicle::Vehicle
- Vehicle::destroy
- Vehicle::explode
- Vehicle::getColor
- Vehicle::getColorRGB
- Vehicle::getExtra
- Vehicle::getMod
- Vehicle::getNeonColor
- Vehicle::getOccupant
- Vehicle::getOccupants
- Vehicle::getPaint
- Vehicle::isStreamed
- Vehicle::isStreamedFor
- Vehicle::repair
- Vehicle::setColor
- Vehicle::setColorRGB
- Vehicle::setExtra
- Vehicle::setMod
- Vehicle::setNeonColor
- Vehicle::setOccupant
- Vehicle::setPaint
- Vehicle::spawn
- Entity::destroy
- Entity::dist
- Entity::distSquared
- Entity::getVariable
- Entity::setVariable
- Entity::setVariables
- Properties
- Vehicle::bodyHealth
- Vehicle::brake
- Vehicle::dashboardColor
- Vehicle::dead
- Vehicle::engine
- Vehicle::engineHealth
- Vehicle::extras
- Vehicle::highbeams
- Vehicle::horn
- Vehicle::livery
- Vehicle::locked
- Vehicle::movable
- Vehicle::mods
- Vehicle::neonEnabled
- Vehicle::numberPlate
- Vehicle::numberPlateType
- Vehicle::pearlescentColor
- Vehicle::rocketBoost
- Vehicle::rotation
- Vehicle::siren
- Vehicle::steerAngle
- Vehicle::streamedPlayers
- Vehicle::taxiLights
- Vehicle::trailer
- Vehicle::traileredBy
- Vehicle::trimColor
- Vehicle::velocity
- Vehicle::windowTint
- Vehicle::wheelColor
- Vehicle::wheelType
- Entity::alpha
- Entity::data
- Entity::dimension
- Entity::id
- Entity::model
- Entity::position
- Entity::type