Renamed VW util to dimension
This commit is contained in:
@@ -74,7 +74,7 @@ function getPlayerVehicle(client) {
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function getPlayerVirtualWorld(client) {
|
||||
function getPlayerDimension(client) {
|
||||
return client.player.dimension;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ function getPlayerInterior(client) {
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function setPlayerVirtualWorld(client, dimension) {
|
||||
function setPlayerDimension(client, dimension) {
|
||||
client.player.dimension = dimension;
|
||||
}
|
||||
|
||||
@@ -196,4 +196,16 @@ function getElementSyncer(element) {
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function givePlayerWeapon(client, weaponId, ammo, active) {
|
||||
triggerNetworkEvent("ag.giveWeapon", client, weaponId, ammo, active);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function clearPlayerWeapons(client) {
|
||||
triggerNetworkEvent("ag.clearWeapons", client);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
//triggerNetworkEvent("ag.veh.engine", getElementSyncer(getPlayerVehicle(client)), getVehicleForNetworkEvent(vehicle), getVehicleData(vehicle).engine);
|
||||
Reference in New Issue
Block a user