Skip to content

Commit

Permalink
Fixed ShowNotification and changed keybind to F2
Browse files Browse the repository at this point in the history
  • Loading branch information
Blumlaut committed Aug 22, 2017
1 parent 69b6075 commit 87ba58e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion admin_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Citizen.CreateThread(function()
end
end
SaveResourceFile("EasyAdmin", "banlist.txt", content, -1)
print("Updated Banlist! With Contents: ".. content)
end
updateBlacklist()
end)
Expand Down
12 changes: 8 additions & 4 deletions gui_c.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Citizen.CreateThread(function()

elseif WarMenu.Button('Close') then
WarMenu.CloseMenu()
elseif IsControlJustReleased(0, 244) and isAdmin then --M by default
elseif IsControlJustReleased(0, 289) and isAdmin then --M by default
WarMenu.OpenMenu('admin')
end

Expand Down Expand Up @@ -115,7 +115,7 @@ function spectatePlayer(target,name)
end


TriggerEvent("showNotification", "Spectating ~b~<C>"..name.."</C>.")
ShowNotification("Spectating ~b~<C>"..name.."</C>.")
else
if(not IsScreenFadedOut() and not IsScreenFadingOut()) then
DoScreenFadeOut(1000)
Expand All @@ -133,8 +133,12 @@ function spectatePlayer(target,name)
end
end

TriggerEvent("showNotification", "Stopped Spectating ~b~<C>"..name.."</C>.")
ShowNotification("Stopped Spectating ~b~<C>"..name.."</C>.")
end
end


function ShowNotification(text)
SetNotificationTextEntry("STRING")
AddTextComponentString(text)
DrawNotification(0,1)
end

0 comments on commit 87ba58e

Please sign in to comment.