Added int/vw and distance funcs to native.js
This commit is contained in:
@@ -90,6 +90,18 @@ function getPlayerVehicle(client) {
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function getPlayerVirtualWorld(client) {
|
||||
return client.player.dimension;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function getPlayerInterior(client) {
|
||||
return client.player.interior;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function isPlayerInAnyVehicle(client) {
|
||||
return (client.player.vehicle != null);
|
||||
}
|
||||
@@ -142,4 +154,10 @@ function isPlayerInFrontVehicleSeat(client) {
|
||||
return (getPlayerVehicleSeat(client) == 0 || getPlayerVehicleSeat(client) == 1);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function getDistance(vec1, vec2) {
|
||||
return vec1.distance(vec2);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user