Skip to content

Commit 76c4ef8

Browse files
Player_IsPlayerUsingOmp to Player_IsUsingOmp
1 parent 13cda42 commit 76c4ef8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

omp-gdk/src/scripting/players/functions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ native!(Player_GetSirenState, player: struct Player, -> i32);
198198
native!(Player_GetLandingGearState, player: struct Player, -> i32);
199199
native!(Player_GetHydraReactorAngle, player: struct Player, -> u32);
200200
native!(Player_GetTrainSpeed, player: struct Player, -> f32);
201-
native!(Player_IsPlayerUsingOmp, player: struct Player, -> bool);
201+
native!(Player_IsUsingOmp, player: struct Player, -> bool);
202202

203203
#[doc(hidden)]
204204
pub fn load_functions() {
@@ -391,5 +391,5 @@ pub fn load_functions() {
391391
load_function!(Player_GetLandingGearState);
392392
load_function!(Player_GetHydraReactorAngle);
393393
load_function!(Player_GetTrainSpeed);
394-
load_function!(Player_IsPlayerUsingOmp);
394+
load_function!(Player_IsUsingOmp);
395395
}

omp-gdk/src/scripting/players/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ impl Player {
14281428

14291429
/// Check if the player is using the open.mp launcher
14301430
pub fn is_using_omp(&self) -> bool {
1431-
functions::Player_IsPlayerUsingOmp(self)
1431+
functions::Player_IsUsingOmp(self)
14321432
}
14331433

14341434
fn defer_api_call(&self, callback: Box<dyn FnOnce(Self)>) {

0 commit comments

Comments
 (0)