Vehicle::dead: Difference between revisions
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
==Example== | ==Example== | ||
{{ServerSide| | {{ServerSide| | ||
<syntaxhighlight lang="javascript"> | |||
mp.events.addCommand('getVehicleDead', player, _, vehid) => { | |||
const vehicle = mp.vehicles.at(vehid) | const vehicle = mp.vehicles.at(vehid) | ||
if(vehicle) | if(vehicle) | ||
player.outputChatBox(`Vehicle: ${vehicle.dead ? 'Dead' : 'Living'}`) | player.outputChatBox(`Vehicle: ${vehicle.dead ? 'Dead' : 'Living'}`) | ||
}) | }) | ||
</ | </syntaxhighlight> | ||
}} | |||
Revision as of 20:42, 29 May 2017
This getter property, says that the transport is dead or not
Getter
- Boolean
Example
Server-Side