Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local X, Y, W; H = 0.0125
- local Duration = 7500
- local timer = GetGameTimer()
- if not HasStreamedTextureDictLoaded('timerbars') then
- RequestStreamedTextureDict('timerbars')
- while not HasStreamedTextureDictLoaded('timerbars') do
- Citizen.Wait(0)
- end
- end
- if GetTimeDifference(GetGameTimer(), timer) < Duration then
- W = (GetTimeDifference(GetGameTimer(), timer) * (0.085 / Duration))
- end
- local correction = ((1.0 - round(GetSafeZoneSize(), 2)) * 100) * 0.005
- X, Y = 0.9255 - correction, 0.94 - correction
- Set_2dLayer(0)
- DrawSprite('timerbars', 'all_black_bg', X, Y, 0.15, 0.0325, 0.0, 255, 255, 255, 180)
- Set_2dLayer(1)
- DrawRect(X + 0.0275, Y, 0.085, 0.0125, 100, 0, 0, 180)
- Set_2dLayer(2)
- DrawRect(X - 0.015 + (W / 2), Y, W, H, 150, 0, 0, 180)
- SetTextColour(255, 255, 255, 180)
- SetTextFont(0)
- SetTextScale(0.3, 0.3)
- SetTextCentre(true)
- SetTextEntry('STRING')
- AddTextComponentString(GetLabelText('KS_RESPAWN_B'))
- Set_2dLayer(3)
- DrawText(X - 0.06, Y - 0.012)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement