-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClient.lua
39 lines (34 loc) · 1.11 KB
/
Client.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
RegisterNetEvent("ServerMenager_Bot:kill")
AddEventHandler("ServerMenager_Bot:kill", function()
SetEntityHealth(PlayerPedId(), 0)
end)
announcestring = false
lastfor = 5
RegisterNetEvent('ServerMenager_Bot:announce')
announcestring = false
AddEventHandler('ServerMenager_Bot:announce', function(msg)
announcestring = msg
PlaySoundFrontend(-1, "DELETE","HUD_DEATHMATCH_SOUNDSET", 1)
Citizen.Wait(lastfor * 1000)
announcestring = false
end)
function Initialize(scaleform)
local scaleform = RequestScaleformMovie(scaleform)
while not HasScaleformMovieLoaded(scaleform) do
Citizen.Wait(0)
end
PushScaleformMovieFunction(scaleform, "SHOW_SHARD_WASTED_MP_MESSAGE")
PushScaleformMovieFunctionParameterString("~y~Informacja")
PushScaleformMovieFunctionParameterString(announcestring)
PopScaleformMovieFunctionVoid()
return scaleform
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if announcestring then
scaleform = Initialize("mp_big_message_freemode")
DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0)
end
end
end)