|
void | Repair () |
| Repair all damage to this Vehicle instantaneously. More...
|
|
void | Explode () |
| Explode this Vehicle instantaneously. More...
|
|
new bool | Exists () |
| Determines if this Vehicle exists. More...
|
|
void | Wash () |
|
bool | IsExtraOn (int extra) |
|
bool | ExtraExists (int extra) |
|
void | ToggleExtra (int extra, bool toggle) |
|
void | StartAlarm () |
| Starts sounding the alarm on this Vehicle. More...
|
|
void | SoundHorn (int duration) |
| Sounds the horn on this Vehicle. More...
|
|
void | ApplyDamage (Vector3 position, float damageAmount, float radius) |
|
Ped | GetPedOnSeat (VehicleSeat seat) |
|
Ped | CreatePedOnSeat (VehicleSeat seat, Model model) |
|
Ped | CreateRandomPedOnSeat (VehicleSeat seat) |
|
bool | IsSeatFree (VehicleSeat seat) |
|
bool | PlaceOnGround () |
|
void | PlaceOnNextStreet () |
|
void | TowVehicle (Vehicle vehicle, bool rear) |
|
void | DetachFromTowTruck () |
|
void | DetachTowedVehicle () |
|
void | OpenBombBay () |
|
void | CloseBombBay () |
|
void | SetHeliYawPitchRollMult (float mult) |
|
void | DropCargobobHook (CargobobHook hook) |
|
void | RetractCargobobHook () |
|
bool | IsCargobobHookActive () |
|
bool | IsCargobobHookActive (CargobobHook hook) |
|
void | CargoBobMagnetGrabVehicle () |
|
void | CargoBobMagnetReleaseVehicle () |
|
void | ResetOpacity () |
| Resets the Entity opacity. - See also
- Opacity
. More...
|
|
Vector3 | GetOffsetPosition (Vector3 offset) |
| Gets the position in world coordinates of an offset relative this Entity More...
|
|
Vector3 | GetPositionOffset (Vector3 worldCoords) |
| Gets the relative offset of this Entity from a world coordinates position More...
|
|
bool | HasBeenDamagedBy (Entity entity) |
| Determines whether this Entity has been damaged by a specified Entity. More...
|
|
virtual bool | HasBeenDamagedBy (WeaponHash weapon) |
| Determines whether this Entity has been damaged by a specific weapon]. More...
|
|
virtual bool | HasBeenDamagedByAnyWeapon () |
| Determines whether this Entity has been damaged by any weapon. More...
|
|
virtual bool | HasBeenDamagedByAnyMeleeWeapon () |
| Determines whether this Entity has been damaged by any melee weapon. More...
|
|
virtual void | ClearLastWeaponDamage () |
| Clears the last weapon damage this Entity received. More...
|
|
void | RemoveParticleEffects () |
| Stops all particle effects attached to this Entity More...
|
|
void | SetNoCollision (Entity entity, bool toggle) |
| Sets the collision between this Entity and another Entity More...
|
|
bool | IsInArea (Vector3 minBounds, Vector3 maxBounds) |
| Determines whether this Entity is in a specified area More...
|
|
bool | IsInAngledArea (Vector3 origin, Vector3 edge, float angle) |
| Determines whether this Entity is in a specified angled area More...
|
|
bool | IsInRange (Vector3 position, float range) |
| Determines whether this Entity is in range of a specified position More...
|
|
bool | IsNearEntity (Entity entity, Vector3 bounds) |
| Determines whether this Entity is near a specified Entity. More...
|
|
bool | IsTouching (Model model) |
| Determines whether this Entity is touching an Entity with the Model model . More...
|
|
bool | IsTouching (Entity entity) |
| Determines whether this Entity is touching the Entity entity . More...
|
|
Blip | AddBlip () |
| Creates a Blip on this Entity More...
|
|
void | Detach () |
| Detaches this Entity from any Entity it may be attached to. More...
|
|
void | AttachTo (Entity entity, Vector3 position=default, Vector3 rotation=default) |
| Attaches this Entity to a different Entity More...
|
|
void | AttachTo (EntityBone entityBone, Vector3 position=default, Vector3 rotation=default) |
| Attaches this Entity to a different Entity More...
|
|
bool | IsAttached () |
| Determines whether this Entity is attached to any other Entity. More...
|
|
bool | IsAttachedTo (Entity entity) |
| Determines whether this Entity is attached to the specified Entity. More...
|
|
void | ApplyForce (Vector3 direction, Vector3 rotation=default, ForceType forceType=ForceType.MaxForceRot2) |
| Applies a force to this Entity. More...
|
|
void | ApplyForceRelative (Vector3 direction, Vector3 rotation=default, ForceType forceType=ForceType.MaxForceRot2) |
| Applies a force to this Entity. More...
|
|
void | MarkAsNoLongerNeeded () |
| Marks this Entity as no longer needed letting the game delete it when its too far away. More...
|
|
override void | Delete () |
| Destroys this Entity. More...
|
|
override bool | Equals (object obj) |
| Determines if an object refers to the same entity as this Entity. More...
|
|
override int | GetHashCode () |
|
|
bool | IsConvertible => Function.Call<bool>(Hash.IS_VEHICLE_A_CONVERTIBLE, Handle, 0) |
|
VehicleModCollection | Mods => _mods ?? (_mods = new VehicleModCollection(this)) |
|
VehicleWheelCollection | Wheels => _wheels ?? (_wheels = new VehicleWheelCollection(this)) |
|
VehicleWindowCollection | Windows => _windows ?? (_windows = new VehicleWindowCollection(this)) |
|
string | DisplayName => GetModelDisplayName(base.Model) |
| Gets the display name of this Vehicle. More...
|
|
string | LocalizedName => Game.GetLocalizedString(DisplayName) |
| Gets the localized name of this Vehicle More...
|
|
string | ClassDisplayName => GetClassDisplayName(ClassType) |
| Gets the display name of this Vehicles VehicleClass. More...
|
|
string | ClassLocalizedName => Game.GetLocalizedString(ClassDisplayName) |
| Gets the localized name of this Vehicles VehicleClass. More...
|
|
VehicleClass | ClassType => Function.Call<VehicleClass>(Hash.GET_VEHICLE_CLASS, Handle) |
| Gets the class of this Vehicle. More...
|
|
float | MaxBraking => Function.Call<float>(Hash.GET_VEHICLE_MAX_BRAKING, Handle) |
| Gets the maximum brake power of this Vehicle. More...
|
|
float | MaxTraction => Function.Call<float>(Hash.GET_VEHICLE_MAX_TRACTION, Handle) |
| Gets the maximum traction of this Vehicle. More...
|
|
bool | IsAlarmSounding => Function.Call<bool>(Hash.IS_VEHICLE_ALARM_ACTIVATED, Handle) |
| Gets a value indicating whether this Vehicle is sounding its alarm. More...
|
|
bool | HasSiren => Bones.Contains("siren1") |
| Gets a value indicating whether this Vehicle has a siren. More...
|
|
bool | IsDamaged => Function.Call<bool>(Hash._IS_VEHICLE_DAMAGED, Handle) |
|
bool | IsRearBumperBrokenOff => Function.Call<bool>(Hash.IS_VEHICLE_BUMPER_BROKEN_OFF, Handle, false) |
|
bool | IsFrontBumperBrokenOff => Function.Call<bool>(Hash.IS_VEHICLE_BUMPER_BROKEN_OFF, Handle, true) |
|
bool | HasRoof => Function.Call<bool>(Hash.DOES_VEHICLE_HAVE_ROOF, Handle) |
|
VehicleDoorCollection | Doors => _doors ?? (_doors = new VehicleDoorCollection(this)) |
|
bool | IsInBurnout => Function.Call<bool>(Hash.IS_VEHICLE_IN_BURNOUT, Handle) |
|
Ped | Driver => GetPedOnSeat(VehicleSeat.Driver) |
|
int | PassengerCount => Function.Call<int>(Hash.GET_VEHICLE_NUMBER_OF_PASSENGERS, Handle) |
|
int | PassengerCapacity => Function.Call<int>(Hash.GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS, Handle) |
|
bool | IsStopped => Function.Call<bool>(Hash.IS_VEHICLE_STOPPED, Handle) |
|
bool | IsStoppedAtTrafficLights => Function.Call<bool>(Hash.IS_VEHICLE_STOPPED_AT_TRAFFIC_LIGHTS, Handle) |
|
bool | IsOnAllWheels => Function.Call<bool>(Hash.IS_VEHICLE_ON_ALL_WHEELS, Handle) |
|
bool | HasForks => Bones.Contains("forks") |
| Gets a value indicating whether this Vehicle has forks. More...
|
|
bool | HasTowArm => Bones.Contains("tow_arm") |
|
bool | HasBombBay => Bones.Contains("door_hatch_l") && Bones.Contains("door_hatch_r") |
|
IntPtr | MemoryAddress => SHVDN.NativeMemory.GetEntityAddress(Handle) |
| Gets the memory address where the Entity is stored in memory. More...
|
|
EntityType | EntityType => (EntityType)Function.Call<int>(Hash.GET_ENTITY_TYPE, Handle) |
| Gets the type of the current Entity. More...
|
|
bool | IsDead => Function.Call<bool>(Hash.IS_ENTITY_DEAD, Handle) |
| Gets a value indicating whether this Entity is dead. More...
|
|
bool | IsAlive => !IsDead |
| Gets a value indicating whether this Entity is alive. More...
|
|
Model | Model => new Model(Function.Call<int>(Hash.GET_ENTITY_MODEL, Handle)) |
| Gets the model of the current Entity. More...
|
|
virtual EntityBoneCollection | Bones => _bones ?? (_bones = new EntityBoneCollection(this)) |
| Gets a collection of the EntityBones in this Entity. More...
|
|
float | SubmersionLevel => Function.Call<float>(Hash.GET_ENTITY_SUBMERGED_LEVEL, Handle) |
| Gets a value indicating how submersed this Entity is, 1.0f means the whole entity is submerged. More...
|
|
float | HeightAboveGround => Function.Call<float>(Hash.GET_ENTITY_HEIGHT_ABOVE_GROUND, Handle) |
| Gets how high above ground this Entity is. More...
|
|
bool | IsOnFire => Function.Call<bool>(Hash.IS_ENTITY_ON_FIRE, Handle) |
| Gets a value indicating whether this Entity is on fire. More...
|
|
bool | IsOnScreen => Function.Call<bool>(Hash.IS_ENTITY_ON_SCREEN, Handle) |
| Gets a value indicating whether this Entity is on screen. More...
|
|
bool | IsUpright => Function.Call<bool>(Hash.IS_ENTITY_UPRIGHT, Handle, 30.0f) |
| Gets a value indicating whether this Entity is upright. More...
|
|
bool | IsUpsideDown => Function.Call<bool>(Hash.IS_ENTITY_UPSIDEDOWN, Handle) |
| Gets a value indicating whether this Entity is upside down. More...
|
|
bool | IsInAir => Function.Call<bool>(Hash.IS_ENTITY_IN_AIR, Handle) |
| Gets a value indicating whether this Entity is in the air. More...
|
|
bool | IsInWater => Function.Call<bool>(Hash.IS_ENTITY_IN_WATER, Handle) |
| Gets a value indicating whether this Entity is in water. More...
|
|
bool | HasCollided => Function.Call<bool>(Hash.HAS_ENTITY_COLLIDED_WITH_ANYTHING, Handle) |
| Gets a value indicating whether this Entity has collided with anything. More...
|
|
MaterialHash | MaterialCollidingWith => (MaterialHash)Function.Call<uint>(Hash.GET_LAST_MATERIAL_HIT_BY_ENTITY, Handle) |
| Gets the material this Entity is pushing up against. More...
|
|
|
float | DirtLevel [get, set] |
|
bool | IsStolen [get, set] |
| Gets or sets a value indicating whether this Vehicle was stolen. More...
|
|
bool??????? | IsWanted [get, set] |
| Gets or sets a value indicating whether this Vehicle is wanted by the police. More...
|
|
bool??????? | NeedsToBeHotwired [get, set] |
| Gets or sets a value indicating whether this Vehicle needs to be hotwired to start. More...
|
|
bool??????? | PreviouslyOwnedByPlayer [get, set] |
| Gets or sets a value indicating whether this Vehicle was previously owned by a Player. More...
|
|
float??????? | LodMultiplier [get, set] |
|
float | BodyHealth [get, set] |
| Gets or sets this Vehicles body health. More...
|
|
float | EngineHealth [get, set] |
| Gets or sets this Vehicle engine health. More...
|
|
float | PetrolTankHealth [get, set] |
| Gets or sets this Vehicle petrol tank health. More...
|
|
float??????? | HeliEngineHealth [get, set] |
| Gets or sets the engine health for this heli. More...
|
|
float??????? | HeliMainRotorHealth [get, set] |
| Gets or sets the main rotor health for this heli. More...
|
|
float??????? | HeliTailRotorHealth [get, set] |
| Gets or sets the tail rotor health for this heli. More...
|
|
bool | IsRadioEnabled [set] |
| Turns this Vehicles radio on or off More...
|
|
RadioStation | RadioStation [set] |
| Sets this Vehicles radio station. More...
|
|
bool | IsEngineRunning [get, set] |
| Gets or sets a value indicating whether this Vehicles engine is running. More...
|
|
bool??????? | IsEngineStarting [get] |
| Gets or sets a value indicating whether this Vehicles engine is currently starting. More...
|
|
bool | CanEngineDegrade [set] |
|
float?????? | EngineTemperature [get] |
| Gets the engine temperature of this Vehicle. More...
|
|
float??????? | EnginePowerMultiplier [get, set] |
|
float | EngineTorqueMultiplier [set] |
|
float?????????????? | OilLevel [get, set] |
| Gets or sets this Vehicle oil level. More...
|
|
float | OilVolume [get] |
| Gets the oil volume of this Vehicle. More...
|
|
float | FuelLevel [get, set] |
| Gets or sets this Vehicle fuel level. More...
|
|
float | PetrolTankVolume [get] |
| Gets the petrol tank volume of this Vehicle. More...
|
|
int?????????????? | Gears [get, set] |
| Gets or sets the gears value of this Vehicle. More...
|
|
int | HighGear [get, set] |
|
int?????????????? | NextGear [get, set] |
| Gets or sets the next gear value of this Vehicle. More...
|
|
int | CurrentGear [get, set] |
| Gets or sets the current gear this Vehicle is using. More...
|
|
float?????????????? | Turbo [get, set] |
| Gets or sets the current turbo value of this Vehicle. More...
|
|
float?????????????? | Clutch [get, set] |
| Gets or sets the current clutch of this Vehicle. More...
|
|
float?????????????? | Throttle [get, set] |
| Gets or sets the current throttle of this Vehicle. More...
|
|
float?????????????? | BrakePower [get, set] |
| Gets or sets the current brake power of this Vehicle. More...
|
|
float?????????????? | ThrottlePower [get, set] |
| Gets or sets the current throttle power of this Vehicle. More...
|
|
float | WheelSpeed [get] |
| Gets the speed the drive wheels are turning at, This is the value used for the dashboard speedometers(after being converted to mph). More...
|
|
float | ForwardSpeed [set] |
| Sets this Vehicles forward speed. More...
|
|
float??????? | HeliBladesSpeed [get, set] |
| Gets or sets the blades speed for this heli. More...
|
|
float | CurrentRPM [get, set] |
| Gets or sets the current RPM of this Vehicle. More...
|
|
float | Acceleration [get] |
| Gets the acceleration of this Vehicle. More...
|
|
float | SteeringAngle [get, set] |
| Gets or sets the steering angle of this Vehicle. More...
|
|
float | SteeringScale [get, set] |
| Gets or sets the steering scale of this Vehicle. More...
|
|
bool??????? | IsAlarmSet [get, set] |
| Sets a value indicating whether this Vehicle has an alarm set. More...
|
|
int??????????????? | AlarmTimeLeft [get, set] |
| Gets or sets time left before this Vehicle alarm stops. If greater than zero, the vehicle alarm will be sounding. the value is up to 65534. More...
|
|
bool | IsSirenActive [get, set] |
| Gets or sets a value indicating whether this Vehicle has its siren turned on. More...
|
|
bool | IsSirenSilent [set] |
| Sets a value indicating whether the siren on this Vehicle plays sounds. More...
|
|
bool? | AreLightsOn [get, set] |
| Gets or sets a value indicating whether this Vehicle has its lights on. More...
|
|
bool | AreHighBeamsOn [get, set] |
| Gets or sets a value indicating whether this Vehicle has its high beams on. More...
|
|
bool??????? | IsInteriorLightOn [get, set] |
| Gets or sets a value indicating whether this Vehicle has its interior lights on. More...
|
|
bool | IsSearchLightOn [get, set] |
| Gets or sets a value indicating whether this Vehicle has its search light on. More...
|
|
bool | IsTaxiLightOn [get, set] |
| Gets or sets a value indicating whether this Vehicle has its taxi light on. More...
|
|
bool | IsLeftIndicatorLightOn [set] |
| Gets or sets a value indicating whether this Vehicle has its left indicator light on. More...
|
|
bool | IsRightIndicatorLightOn [set] |
| Gets or sets a value indicating whether this Vehicle has its right indicator light on. More...
|
|
bool | AreBrakeLightsOn [set] |
| Gets or sets a value indicating whether this Vehicle has its brake light on. More...
|
|
float??????? | LightsMultiplier [get, set] |
|
bool | IsDriveable [get, set] |
|
bool??????? | IsLeftHeadLightBroken [get, set] |
|
bool??????? | IsRightHeadLightBroken [get, set] |
|
bool | IsAxlesStrong [set] |
|
bool | CanTiresBurst [get, set] |
|
bool??????? | CanWheelsBreak [get, set] |
|
bool | CanBeVisiblyDamaged [set] |
|
bool??????????? | DropsMoneyOnExplosion [get, set] |
| Gets or sets a value indicating whether this Vehicle drops money when destroyed. More...
|
|
VehicleRoofState | RoofState [get, set] |
|
VehicleLockStatus | LockStatus [get, set] |
|
VehicleLandingGearState | LandingGearState [get, set] |
|
bool | IsBurnoutForced [set] |
|
bool | IsHandbrakeForcedOn [set] |
| Sets a value indicating whether the Handbrake on this Vehicle is forced on. More...
|
|
Ped[] | Occupants [get] |
|
Ped[] | Passengers [get] |
|
bool??????? | ProvidesCover [get, set] |
| Gets or sets a value indicating whether peds can use this Vehicle for cover. More...
|
|
float | TowArmPosition [set] |
|
Vehicle? | TowedVehicle [get] |
|
int | Opacity [get, set] |
| Gets or sets how opaque this Entity is. More...
|
|
int | LodDistance [get, set] |
| Gets or sets the level of detail distance of this Entity. More...
|
|
bool | IsPersistent [get, set] |
| Gets or sets a value indicating whether this Entity is persistent. More...
|
|
bool | IsPositionFrozen [get, set] |
| Gets or sets a value indicating whether this Entity is frozen. More...
|
|
int | Health [get, set] |
| Gets or sets the health of this Entity as an int. More...
|
|
virtual int | MaxHealth [get, set] |
| Gets or sets the maximum health of this Entity as an int. More...
|
|
float | HealthFloat [get, set] |
| Gets or sets the health of this Entity as a float. More...
|
|
float?? | MaxHealthFloat [get, set] |
| Gets or sets the maximum health of this Entity in float. More...
|
|
Matrix | Matrix [get] |
| Gets this Entitys matrix which stores position and rotation information. More...
|
|
virtual Vector3 | Position [get, set] |
| Gets or sets the position of this Entity. More...
|
|
Vector3 | PositionNoOffset [set] |
| Sets the position of this Entity without any offset. More...
|
|
virtual Vector3 | Rotation [get, set] |
| Gets or sets the rotation of this Entity. More...
|
|
float | Heading [get, set] |
| Gets or sets the heading of this Entity. More...
|
|
Quaternion | Quaternion [get, set] |
| Gets or sets the quaternion of this Entity. More...
|
|
Vector3 | UpVector [get] |
| Gets the vector that points above this Entity More...
|
|
Vector3 | RightVector [get] |
| Gets the vector that points to the right of this Entity More...
|
|
Vector3 | ForwardVector [get] |
| Gets the vector that points in front of this Entity More...
|
|
Vector3 | LeftPosition [get] |
| Gets a position directly to the left of this Entity More...
|
|
Vector3 | RightPosition [get] |
| Gets a position directly to the right of this Entity More...
|
|
Vector3 | RearPosition [get] |
| Gets a position directly behind this Entity More...
|
|
Vector3 | FrontPosition [get] |
| Gets a position directly in front of this Entity More...
|
|
Vector3 | AbovePosition [get] |
| Gets a position directly above this Entity More...
|
|
Vector3 | BelowPosition [get] |
| Gets a position directly below this Entity More...
|
|
float | Speed [get, set] |
| Gets or sets this Entitys speed. More...
|
|
float | MaxSpeed [set] |
| Sets the maximum speed this Entity can move at. More...
|
|
Vector3 | Velocity [get, set] |
| Gets or sets the velocity of this Entity. More...
|
|
Vector3 | RotationVelocity [get] |
| Gets the rotation velocity of this Entity. More...
|
|
bool | IsFireProof [get, set] |
| Gets or sets a value indicating whether this Entity is fire proof. More...
|
|
bool | IsMeleeProof [get, set] |
| Gets or sets a value indicating whether this Entity is melee proof. More...
|
|
bool | IsBulletProof [get, set] |
| Gets or sets a value indicating whether this Entity is bullet proof. More...
|
|
bool | IsExplosionProof [get, set] |
| Gets or sets a value indicating whether this Entity is explosion proof. More...
|
|
bool | IsCollisionProof [get, set] |
| Gets or sets a value indicating whether this Entity is collision proof. More...
|
|
bool | IsInvincible [get, set] |
| Gets or sets a value indicating whether this Entity is invincible. More...
|
|
bool | IsOnlyDamagedByPlayer [get, set] |
| Gets or sets a value indicating whether this Entity can only be damaged by Players. More...
|
|
bool | IsVisible [get, set] |
| Gets or sets a value indicating whether this Entity is visible. More...
|
|
bool | IsOccluded [get] |
| Gets a value indicating whether this Entity is occluded. More...
|
|
bool | IsRendered [get] |
| Gets a value indicating whether this Entity is rendered. More...
|
|
bool | HasGravity [get, set] |
| Gets or sets a value indicating whether this Entity has gravity. More...
|
|
bool | IsCollisionEnabled [get, set] |
| Gets or sets a value indicating whether this Entity has collision. More...
|
|
bool | IsRecordingCollisions [set] |
| Gets or sets a value indicating whether this Entity is recording collisions. More...
|
|
Blip | AttachedBlip [get] |
| Gets the Blip attached to this Entity. More...
|
|
Blip[] | AttachedBlips [get] |
| Gets an array of all Blips attached to this Entity. More...
|
|
Entity | AttachedEntity [get] |
| Gets the Entity this Entity is attached to. More...
|
|
int | Handle [get, protected set] |
| The handle of the object. More...
|
|
ulong | NativeValue [get, set] |
| The handle of the object translated to a native value. More...
|
|
ulong | NativeValue [get, set] |
|
Vector3 | Position [get, set] |
|
Vector3 | Rotation [get, set] |
|