Skip to content

Commit 08ef1d0

Browse files
authored
Merge pull request #671 from omar-o22/Add-the-new-special-properties
admin2: Add the new world special properties
2 parents dc02545 + 2d06d47 commit 08ef1d0

File tree

1 file changed

+67
-5
lines changed

1 file changed

+67
-5
lines changed

[admin]/admin2/client/main/admin_server.lua

Lines changed: 67 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,18 @@ aServerTab = {
3131
SniperMoon = 'Sniper Moon',
3232
ExtraAirResistance = 'Extra Air Resistance',
3333
UnderWorldWarp = 'Under World Warp',
34-
VehiclesSunGlare = "Vehicles Sun Glare",
34+
VehicleSunGlare = "Vehicles Sun Glare",
3535
CoronaZTest = "Corona Z Test",
3636
WaterCreatures = "Water Creatures",
3737
BurnFlippedCars = "Burn Flipped Cars",
38-
FireBallDestruct = "Fire Ball Destruct"
38+
FireBallDestruct = "Fire Ball Destruct",
39+
RoadSignsText = "Road Signs Text",
40+
ExtendedWaterCannons = "Extended Water Cannons",
41+
TunnelWeatherBlend = "Tunnel Weather Blend",
42+
IgnoreFireState = "Ignore Fire State",
43+
FlyingComponents = "Flying Components",
44+
VehicleBurnExplosions = "Vehicle Burn Explosions",
45+
Vehicle_Engine_AutoStart = "Vehicle Engine Auto Start"
3946
}
4047
}
4148

@@ -437,13 +444,13 @@ function aServerTab.onClientClick(button)
437444
"underworldwarp",
438445
iif(guiCheckBoxGetSelected(aServerTab.UnderWorldWarp), "on", "off")
439446
)
440-
elseif (source == aServerTab.VehiclesSunGlare) then
447+
elseif (source == aServerTab.VehicleSunGlare) then
441448
triggerServerEvent(
442449
"aServer",
443450
localPlayer,
444451
"setworldproperty",
445452
"vehiclesunglare",
446-
iif(guiCheckBoxGetSelected(aServerTab.VehiclesSunGlare), "on", "off")
453+
iif(guiCheckBoxGetSelected(aServerTab.VehicleSunGlare), "on", "off")
447454
)
448455
elseif (source == aServerTab.CoronaZTest) then
449456
triggerServerEvent(
@@ -461,6 +468,54 @@ function aServerTab.onClientClick(button)
461468
"watercreatures",
462469
iif(guiCheckBoxGetSelected(aServerTab.WaterCreatures), "on", "off")
463470
)
471+
elseif (source == aServerTab.RoadSignsText) then
472+
triggerServerEvent(
473+
"aServer",
474+
localPlayer,
475+
"setworldproperty",
476+
"roadsignstext",
477+
iif(guiCheckBoxGetSelected(aServerTab.RoadSignsText), "on", "off")
478+
)
479+
elseif (source == aServerTab.ExtendedWaterCannons) then
480+
triggerServerEvent(
481+
"aServer",
482+
localPlayer,
483+
"setworldproperty",
484+
"extendedwatercannons",
485+
iif(guiCheckBoxGetSelected(aServerTab.ExtendedWaterCannons), "on", "off")
486+
)
487+
elseif (source == aServerTab.TunnelWeatherBlend) then
488+
triggerServerEvent(
489+
"aServer",
490+
localPlayer,
491+
"setworldproperty",
492+
"tunnelweatherblend",
493+
iif(guiCheckBoxGetSelected(aServerTab.TunnelWeatherBlend), "on", "off")
494+
)
495+
elseif (source == aServerTab.FlyingComponents) then
496+
triggerServerEvent(
497+
"aServer",
498+
localPlayer,
499+
"setworldproperty",
500+
"flyingcomponents",
501+
iif(guiCheckBoxGetSelected(aServerTab.FlyingComponents), "on", "off")
502+
)
503+
elseif (source == aServerTab.VehicleBurnExplosions) then
504+
triggerServerEvent(
505+
"aServer",
506+
localPlayer,
507+
"setworldproperty",
508+
"vehicleburnexplosions",
509+
iif(guiCheckBoxGetSelected(aServerTab.VehicleBurnExplosions), "on", "off")
510+
)
511+
elseif (source == aServerTab.Vehicle_Engine_AutoStart) then
512+
triggerServerEvent(
513+
"aServer",
514+
localPlayer,
515+
"setworldproperty",
516+
"vehicle_engine_autostart",
517+
iif(guiCheckBoxGetSelected(aServerTab.Vehicle_Engine_AutoStart), "on", "off")
518+
)
464519
end
465520
end
466521
end
@@ -523,11 +578,18 @@ function aServerTab.onRefresh()
523578
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.SniperMoon, 2, isWorldSpecialPropertyEnabled("snipermoon") and "" or "", false, false)
524579
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.ExtraAirResistance, 2, isWorldSpecialPropertyEnabled("extraairresistance") and "" or "", false, false)
525580
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.UnderWorldWarp, 2, isWorldSpecialPropertyEnabled("underworldwarp") and "" or "", false, false)
526-
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.VehiclesSunGlare, 2, isWorldSpecialPropertyEnabled("vehiclesunglare") and "" or "", false, false)
581+
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.VehicleSunGlare, 2, isWorldSpecialPropertyEnabled("vehiclesunglare") and "" or "", false, false)
527582
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.CoronaZTest, 2, isWorldSpecialPropertyEnabled("coronaztest") and "" or "", false, false)
528583
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.WaterCreatures, 2, isWorldSpecialPropertyEnabled("watercreatures") and "" or "", false, false)
529584
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.BurnFlippedCars, 2, isWorldSpecialPropertyEnabled("burnflippedcars") and "" or "", false, false)
530585
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.FireBallDestruct, 2, isWorldSpecialPropertyEnabled("fireballdestruct") and "" or "", false, false)
586+
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.RoadSignsText, 2, isWorldSpecialPropertyEnabled("roadsignstext") and "" or "", false, false)
587+
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.ExtendedWaterCannons, 2, isWorldSpecialPropertyEnabled("extendedwatercannons") and "" or "", false, false)
588+
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.TunnelWeatherBlend, 2, isWorldSpecialPropertyEnabled("tunnelweatherblend") and "" or "", false, false)
589+
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.IgnoreFireState, 2, isWorldSpecialPropertyEnabled("ignorefirestate") and "" or "", false, false)
590+
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.FlyingComponents, 2, isWorldSpecialPropertyEnabled("flyingcomponents") and "" or "", false, false)
591+
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.VehicleBurnExplosions, 2, isWorldSpecialPropertyEnabled("vehicleburnexplosions") and "" or "", false, false)
592+
guiGridListSetItemText(aServerTab.Glitches_Properties, aServerTab.Vehicle_Engine_AutoStart, 2, isWorldSpecialPropertyEnabled("vehicle_engine_autostart") and "" or "", false, false)
531593

532594
triggerServerEvent("aServerGlitchRefresh", localPlayer)
533595
end

0 commit comments

Comments
 (0)