Floh
February 19, 2021, 4:45am
1
DESCRIPTION
My first release : ) Simple to the point of , but I saw someone requested it.
A simple “peacetime” script for RP servers which disables firing and shows status. Easy customization. Uses HTML UI with simple, smooth transitions.
DEPENDENCIES
DOWNLOAD
VIDEO
Update 1.01 Fixed perms issue, typo, and UI Issue : )
9 Likes
Wrxth
February 19, 2021, 5:50am
2
Awesome job, very clean look!
1 Like
Floh
February 24, 2021, 2:08pm
6
@Brandon37
width: 1000px;
margin: 0 auto;
margin-top: 200px;
text-align: center;
The position is determined by these lines in the CSS.
If you have an idea of where you want to move it I can point you in the right direction?
1 Like
zselite
February 25, 2021, 10:39pm
7
hey I would like to move it right next to the top of the mini map. can u help me out with that?
1 Like
Floh
February 25, 2021, 11:41pm
8
To position it above the map change these lines in ui.css …
width: 1000px;
margin: 0 auto;
margin-top: 200px;
text-align: center;
To this:
position: absolute;
bottom: 20vh;
left: 1vw;
margin: 0;
text-align: left;
I haven’t tested this, so you will have to adjust the value of “bottom: 20vh
:” a bit. It should be a value around 15vh-30vh
Hope this works! If not let me know.
Gtpwr
November 5, 2021, 12:56am
10
I don’t see the text saying PT is activated. It only shows in chat
Floh
November 5, 2021, 1:22am
11
Make sure you have one sync enabled and you have the most recent version.
Luxr
June 19, 2022, 1:30am
12
Definitely late to the party here, but would it be possible to add a function where it checks if peacetime is enabled when a new player connects, and if so push the NUI display to the new player? I was doing some testing and if you relog or join the server during an active peacetime, you can’t see the NUI saying peacetime is enabled (yes OneSync is on) and this may lead players to believe their game is bugged. I tried looking around the docs to see if this was possible but couldn’t find anything that I could put together with my limited scripting knowledge.
Floh
June 19, 2022, 1:49am
13
I’m pretty sure I added this, I will double check it if I get a chance.
Edit: looks like I didn’t I will add it
2 Likes
You need to make one of these for Priority Cooldown
1 Like
Floh
November 28, 2022, 3:12pm
15
Fixed bugs in this, it now works properly.
Floh
November 28, 2022, 3:12pm
16
This has been corrected/added.