Skip to content

Commit cf6d1c5

Browse files
authored
Merge branch 'multitheftauto:master' into Weapons
2 parents eacfb47 + daa3e86 commit cf6d1c5

239 files changed

Lines changed: 733 additions & 501 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎[admin]/admin/admin_definitions.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
_DEBUG = false
1212

13-
_version = '1.6'
13+
_version = '1.7'
1414

1515
-- MISC DEFINITIONS
1616
ADMIN_CHAT_MAXLENGTH = 225

‎[admin]/admin/client/admin_client.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
_DEBUG = false
1212

13-
_version = '1.6'
13+
_version = '1.7'
1414
_flags = {}
1515
_widgets = {}
1616
_settings = nil

‎[admin]/admin/client/admin_gui.lua‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ end
5656

5757
function guiCreateList(x, y, w, h, tabHeight, header, relative, parent, right)
5858
local list = guiCreateButton(x, y, w, h, header, relative, parent, right)
59-
59+
6060
local parentWidth, parentHeight = guiGetSize(parent, false)
6161

6262
local absoluteWidth = parentWidth * w
6363
local absoluteHeight = parentHeight * h
6464

6565
local dropDown = guiCreateStaticImage(absoluteWidth - 20, 0, 20, 20, "client\\images\\dropdown.png", false, list)
6666
guiSetProperty(dropDown, 'AlwaysOnTop', 'True')
67-
67+
6868
addEventHandler('onClientGUIClick', dropDown, function()
6969
guiListSetVisible(list, true)
7070
end, false)
@@ -75,7 +75,7 @@ function guiCreateList(x, y, w, h, tabHeight, header, relative, parent, right)
7575

7676
local edit = guiCreateEdit(0, 0, absoluteWidth - 20, 20, '', false, bg)
7777
guiSetProperty(edit, 'AlwaysOnTop', 'True')
78-
78+
7979
addEventHandler('onClientGUIChanged', edit, function()
8080
guiListLoadItems(list)
8181
end)
@@ -87,7 +87,7 @@ function guiCreateList(x, y, w, h, tabHeight, header, relative, parent, right)
8787
local close = guiCreateButton(absoluteWidth-20, 0, 20, 20, 'X', false, bg)
8888
guiSetProperty(close, 'AlwaysOnTop', 'True')
8989
guiSetAlpha(close, 1)
90-
90+
9191
addEventHandler('onClientGUIClick', close, function()
9292
guiListSetVisible(list, false)
9393
end, false)

‎[admin]/admin/client/gui/admin_acl.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function aManageACL ()
4949
aACLSetRight = guiCreateButton ( 0.55, 0.40, 0.40, 0.04, "Enable Selected Right", true, aAclForm )
5050
aACLRemoveRight = guiCreateButton ( 0.55, 0.45, 0.40, 0.04, "Disable Selected Right", true, aAclForm )
5151
aACLDeleteRight = guiCreateButton ( 0.55, 0.55, 0.40, 0.04, "Delete Right", true, aAclForm )
52-
52+
5353
aACLExit = guiCreateButton ( 0.75, 0.90, 0.27, 0.04, "Close", true, aAclForm )
5454
aclDisplayOptions ( "", "" )
5555

‎[admin]/admin/client/gui/admin_main.lua‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ y=y+B aTab1.VehicleHealth = guiCreateLabel ( 0.26, y, 0.25, 0.04, "Vehicle Heal
165165
aTab1.VehicleCustomize = guiCreateButton ( 0.85, 0.89, 0.13, 0.04, "Customize", true, aTab1.Tab, "customize" )
166166
aTab1.AnonAdmin = guiCreateCheckBox (0.745, 0.942, 0.20, 0.04, "Anonymous Admin", isAnonAdmin(), true, aTab1.Tab )
167167
aTab1.GiveVehicle = guiCreateList( 0.71, 0.710, 0.27, 0.04, 0.275, "Give: "..getVehicleNameFromModel ( aCurrentVehicle ), true, aTab1.Tab, 'givevehicle')
168-
168+
169169
local vehicles = {}
170170
for i = 400, 611 do
171171
local vehName = getVehicleNameFromModel(i)
@@ -495,7 +495,7 @@ function aAdminRefresh ()
495495
local player = getPlayerFromName ( guiGridListGetItemPlayerName ( aTab1.PlayerList, guiGridListGetSelectedItem( aTab1.PlayerList ), 1 ) )
496496
if ( player and aPlayers[player] ) then
497497
local playerName = aPlayers[player]["name"]
498-
498+
499499
if isColorCodeHidden() then
500500
playerName = removeColorCoding(playerName)
501501
else
@@ -525,11 +525,11 @@ function aAdminRefresh ()
525525
if ( getElementInterior ( player ) ) then guiSetText ( aTab1.Interior, "Interior: "..getElementInterior ( player ) ) end
526526
guiSetText ( aTab1.JetPack, iif ( isPedWearingJetpack ( player ), "Remove JetPack", "Give JetPack" ) )
527527
if ( getPedWeapon ( player ) ) then guiSetText ( aTab1.Weapon, "Weapon: "..getWeaponNameFromID ( getPedWeapon ( player ) ).." (ID: "..getPedWeapon ( player )..")" ) end
528-
528+
529529
local x, y, z = getElementPosition ( player )
530530
local zoneName = getZoneName ( x, y, z, false )
531531
local cityName = getZoneName ( x, y, z, true )
532-
532+
533533
guiSetText ( aTab1.Area, "Area: "..getSensitiveText( iif ( zoneName == cityName, zoneName, zoneName.." ("..cityName..")" ) ) )
534534

535535
x = getSensitiveText('%.3f'):format(x)
@@ -1092,7 +1092,7 @@ function aClientClick ( button )
10921092
guiGridListClear ( aTab2.ResourceList )
10931093
triggerServerEvent ( "aSync", localPlayer, "resources" )
10941094
end
1095-
1095+
10961096
-- TAB 3, WORLD
10971097
elseif ( getElementParent ( source ) == aTab3.Tab ) then
10981098
if ( source == aTab3.SetGameType ) then aInputBox ( "Game Type", "Enter game type:", "", "setGameType" )

‎[admin]/admin/client/gui/admin_permissions.lua‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function aPermissions.Show(player)
2020
local x, y = guiGetScreenSize()
2121
aPermissions.Form = guiCreateWindow(x / 2 - 200, y / 2 - 125, 400, 250, '', false)
2222
guiSetAlpha(aPermissions.Form, 1)
23-
23+
2424
aPermissions.LabelYourPerms = guiCreateLabel(0.03, 0.1, 0.35, 0.07, '', true, aPermissions.Form)
2525
aPermissions.PlayerGroups = guiCreateGridList(0.03, 0.18, 0.35, 0.68, true, aPermissions.Form)
2626
guiGridListAddColumn(aPermissions.PlayerGroups, "Group Name", 0.85)
@@ -35,11 +35,11 @@ function aPermissions.Show(player)
3535

3636
aPermissions.Update = guiCreateButton(0.03, 0.88, 0.435, 0.09, "Refresh", true, aPermissions.Form)
3737
aPermissions.Hide = guiCreateButton(0.535, 0.88, 0.435, 0.09, "Close", true, aPermissions.Form)
38-
38+
3939
addEventHandler('aPermissionsSync', localPlayer, aPermissions.onSync)
4040
addEventHandler('aOnPermissionsChange', localPlayer, aPermissions.Refresh)
4141
addEventHandler("onClientGUIClick", aPermissions.Form, aPermissions.onClick)
42-
42+
4343
--Register With Admin Form
4444
aRegister("PlayerPermissions", aPermissions.Form, aPermissions.Show, aPermissions.Close)
4545
end
@@ -105,13 +105,13 @@ function aPermissions.ConfirmChange(add)
105105
end
106106

107107
local gridlist = add and aPermissions.AllGroups or aPermissions.PlayerGroups
108-
108+
109109
local selected = guiGridListGetSelectedItem(gridlist)
110110

111111
if (selected <= -1) then
112112
return
113113
end
114-
114+
115115
local groupName = guiGridListGetItemText(gridlist, selected, 1)
116116

117117
local str = add and 'Are you sure you want to add "%s" to the "%s" group?' or 'Are you sure you want to remove "%s" from the "%s" group?'

‎[admin]/admin/client/gui/admin_spectator.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function aSpectator.CheckCollision(x, y, z)
301301
end
302302
end
303303
end
304-
304+
305305
return nearest_distance or false
306306
end
307307

‎[admin]/admin/client/gui/admin_warp.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function aClientWarpClick ( button, state, absX, absY )
160160
aPlayerWarpClose ( false )
161161
elseif ( source == aWarpToPosition ) then
162162
aPlayerWarpToPosition ( )
163-
163+
164164
-- Player Warp To Position Map
165165
elseif ( source == aWarpToPositionMap ) then
166166
calculatePosition ( absX, absY )
-34 Bytes
Loading
-74 Bytes
Loading

0 commit comments

Comments
 (0)