Client
Check if the player is completely in a vehicle or not
lib.isInVehicle
lib.isInVehicle()Returns
- success
boolean: Whether the player is in a vehicle or not
Example
local isInVehicle<const> = lib.isInVehicle()
if isInVehicle then
lib.console.info('You are in a vehicle')
else
lib.console.info('You are not in a vehicle')
end