@@ -13,117 +13,117 @@ namespace GTA
1313 }
1414 Vector3 Entity::Position::get ()
1515 {
16- return Native::Function::Call<Vector3>(" GET_ENTITY_COORDS" , this ->ID , 0 );
16+ return Native::Function::Call<Vector3>(Native::Hash:: GET_ENTITY_COORDS, this ->ID , 0 );
1717 }
1818 void Entity::Position::set (Vector3 value)
1919 {
20- Native::Function::Call (" SET_ENTITY_COORDS" , this ->ID , value.X , value.Y , value.Z , 0 , 0 , 0 , 1 );
20+ Native::Function::Call (Native::Hash:: SET_ENTITY_COORDS, this ->ID , value.X , value.Y , value.Z , 0 , 0 , 0 , 1 );
2121 }
2222 float Entity::Heading::get ()
2323 {
24- return Native::Function::Call<float >(" GET_ENTITY_HEADING" , this ->ID );
24+ return Native::Function::Call<float >(Native::Hash:: GET_ENTITY_HEADING, this ->ID );
2525 }
2626 void Entity::Heading::set (float value)
2727 {
28- Native::Function::Call<float >(" SET_ENTITY_HEADING" , this ->ID , value);
28+ Native::Function::Call<float >(Native::Hash:: SET_ENTITY_HEADING, this ->ID , value);
2929 }
3030 Vector3 Entity::Rotation::get ()
3131 {
32- return Native::Function::Call<Vector3>(" GET_ENTITY_ROTATION" , this ->ID , 0 );
32+ return Native::Function::Call<Vector3>(Native::Hash:: GET_ENTITY_ROTATION, this ->ID , 0 );
3333 }
3434 Vector3 Entity::Velocity::get ()
3535 {
36- return Native::Function::Call<Vector3>(" GET_ENTITY_VELOCITY" , this ->ID );
36+ return Native::Function::Call<Vector3>(Native::Hash:: GET_ENTITY_VELOCITY, this ->ID );
3737 }
3838 void Entity::Velocity::set (Vector3 value)
3939 {
40- Native::Function::Call (" SET_ENTITY_VELOCITY" , this ->ID , value.X , value.Y , value.Z );
40+ Native::Function::Call (Native::Hash:: SET_ENTITY_VELOCITY, this ->ID , value.X , value.Y , value.Z );
4141 }
4242 int Entity::Health::get ()
4343 {
44- return Native::Function::Call<int >(" GET_ENTITY_HEALTH" , this ->ID );
44+ return Native::Function::Call<int >(Native::Hash:: GET_ENTITY_HEALTH, this ->ID );
4545 }
4646 void Entity::Health::set (int value)
4747 {
48- Native::Function::Call (" SET_ENTITY_HEALTH" , this ->ID , value);
48+ Native::Function::Call (Native::Hash:: SET_ENTITY_HEALTH, this ->ID , value);
4949 }
5050 GTA::Model Entity::Model::get ()
5151 {
52- return GTA::Model (Native::Function::Call<int >(" GET_ENTITY_MODEL" , this ->ID ));
52+ return GTA::Model (Native::Function::Call<int >(Native::Hash:: GET_ENTITY_MODEL, this ->ID ));
5353 }
5454 bool Entity::IsDead::get ()
5555 {
56- return Native::Function::Call<bool >(" IS_ENTITY_DEAD" , this ->ID );
56+ return Native::Function::Call<bool >(Native::Hash:: IS_ENTITY_DEAD, this ->ID );
5757 }
5858 bool Entity::IsAlive::get ()
5959 {
6060 return !IsDead;
6161 }
6262 void Entity::IsInvincible::set (bool value)
6363 {
64- Native::Function::Call (" SET_ENTITY_INVINCIBLE" , this ->ID , value);
64+ Native::Function::Call (Native::Hash:: SET_ENTITY_INVINCIBLE, this ->ID , value);
6565 }
6666 bool Entity::IsVisible::get ()
6767 {
68- return Native::Function::Call<bool >(" IS_ENTITY_VISIBLE" , this ->ID );
68+ return Native::Function::Call<bool >(Native::Hash:: IS_ENTITY_VISIBLE, this ->ID );
6969 }
7070 void Entity::IsVisible::set (bool value)
7171 {
72- Native::Function::Call (" SET_ENTITY_VISIBLE" , this ->ID , value);
72+ Native::Function::Call (Native::Hash:: SET_ENTITY_VISIBLE, this ->ID , value);
7373 }
7474 bool Entity::IsOccluded::get ()
7575 {
76- return Native::Function::Call<bool >(" IS_ENTITY_OCCLUDED" , this ->ID );
76+ return Native::Function::Call<bool >(Native::Hash:: IS_ENTITY_OCCLUDED, this ->ID );
7777 }
7878 bool Entity::IsOnScreen::get ()
7979 {
80- return Native::Function::Call<bool >(" IS_ENTITY_ON_SCREEN" , this ->ID );
80+ return Native::Function::Call<bool >(Native::Hash:: IS_ENTITY_ON_SCREEN, this ->ID );
8181 }
8282 bool Entity::IsUpright::get ()
8383 {
84- return Native::Function::Call<bool >(" IS_ENTITY_UPRIGHT" , this ->ID );
84+ return Native::Function::Call<bool >(Native::Hash:: IS_ENTITY_UPRIGHT, this ->ID );
8585 }
8686 bool Entity::IsUpsideDown::get ()
8787 {
88- return Native::Function::Call<bool >(" IS_ENTITY_UPSIDEDOWN" , this ->ID );
88+ return Native::Function::Call<bool >(Native::Hash:: IS_ENTITY_UPSIDEDOWN, this ->ID );
8989 }
9090 bool Entity::IsInAir::get ()
9191 {
92- return Native::Function::Call<bool >(" IS_PED_GETTING_INTO_A_VEHICLE" , this ->ID );
92+ return Native::Function::Call<bool >(Native::Hash:: IS_PED_GETTING_INTO_A_VEHICLE, this ->ID );
9393 }
9494 bool Entity::IsInWater::get ()
9595 {
96- return Native::Function::Call<bool >(" IS_ENTITY_IN_WATER" , this ->ID );
96+ return Native::Function::Call<bool >(Native::Hash:: IS_ENTITY_IN_WATER, this ->ID );
9797 }
9898 bool Entity::IsOnFire::get ()
9999 {
100- return Native::Function::Call<bool >(" IS_ENTITY_ON_FIRE" , this ->ID );
100+ return Native::Function::Call<bool >(Native::Hash:: IS_ENTITY_ON_FIRE, this ->ID );
101101 }
102102 void Entity::IsOnFire::set (bool value)
103103 {
104104 if (value)
105105 {
106- Native::Function::Call (" START_ENTITY_FIRE" , this ->ID );
106+ Native::Function::Call (Native::Hash:: START_ENTITY_FIRE, this ->ID );
107107 }
108108 else
109109 {
110- Native::Function::Call (" STOP_ENTITY_FIRE" , this ->ID );
110+ Native::Function::Call (Native::Hash:: STOP_ENTITY_FIRE, this ->ID );
111111 }
112112 }
113113 bool Entity::IsRequiredForMission::get ()
114114 {
115- return Native::Function::Call<bool >(" IS_ENTITY_A_MISSION_ENTITY" , this ->ID );
115+ return Native::Function::Call<bool >(Native::Hash:: IS_ENTITY_A_MISSION_ENTITY, this ->ID );
116116 }
117117 void Entity::IsRequiredForMission::set (bool value)
118118 {
119119 if (value)
120120 {
121- Native::Function::Call (" SET_ENTITY_AS_MISSION_ENTITY" , this ->ID , true , false );
121+ Native::Function::Call (Native::Hash:: SET_ENTITY_AS_MISSION_ENTITY, this ->ID , true , false );
122122 }
123123 else
124124 {
125125 int handle = this ->ID ;
126- Native::Function::Call (" SET_ENTITY_AS_NO_LONGER_NEEDED" , &handle);
126+ Native::Function::Call (Native::Hash:: SET_ENTITY_AS_NO_LONGER_NEEDED, &handle);
127127 }
128128 }
129129
@@ -133,6 +133,6 @@ namespace GTA
133133 }
134134 bool Entity::Exists (Entity ^entity)
135135 {
136- return Native::Function::Call<bool >(" DOES_ENTITY_EXIST" , entity->ID );
136+ return Native::Function::Call<bool >(Native::Hash:: DOES_ENTITY_EXIST, entity->ID );
137137 }
138138}
0 commit comments