[FREE] [SCRIPT] Flag half mast system

Showcase Gif

A good MLO is not a good MLO without a good script!.
Put on your class A uniform and pay respects lowering the flag to half mast

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

This is how the script works:

  • Head to the pole base and press H key
  • The flag will moving to half position of the pole
  • If you press H key again, the flag will return to the initial position
  • When the client leave the 200 meters area the prop dissapear, this makes the script simple and clean for your server!


    :warning: ( Note: This script is made on purpose for the MLO that you will see in the link below, although you can use it in other places ) :warning:

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

102c86945d287423537b8b3321a616a305462892.png

1) Download the resource via Github
2) Extract "Flag_sytem" into your resources folder
3) Ensure Flag_sytem in server.cfg
5) Go to the pole and press H.
6) ENJOY the flag moving!


:triangular_flag_on_post: Do you want to change the velocity, position or the flag? Change it here! :triangular_flag_on_post:

Guide (Editable on beaver_flag.lua)
local object = nil
local objectCoords = vector3(-843.693359, -811.919861, 30.0) -- Replace with the real coordinates for the flag position
local objectGround = vector3(-843.83746337891, -811.98425292969, 20.771106719971) -- Replace with the real coordinates for the player interaction
local spawnDistance = 50.0  -- Spawn's distance from the object in relation to the player
local isMovingDown = true
local totalDescent = 0.0
local descentStep = 0.035
local flagspeed = 100 -- the speed for flag movement animation
local flag = "prop_flag_us" -- default object model


▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

DOWNLOAD HERE!
FREE IN GITHUB

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Code is accessible Yes
Subscription-based No
Lines (approximately) 129
Requirements Vespucci Fire Dept [MLO]
Asset Scrow Protected Nope

THIS RESOURCE WAS TESTED AND OPTIMIZED

‎Script made by Mist the goat :goat:
eb1a527b885bdbb0be345819ac3ccda0

▬▬▬▬▬▬▬▬▬

12 Likes

What a unique script! I don’t plan on using the MLO, but from what I’m reading am I correct in thinking this allows you to spawn any prop (tailored towards ones with flags) and your resource will handle the up/down mast animation?

3 Likes

Yes Is pretended for that. You can use for other places :slight_smile:
Anyway take a look to my last MLO :blush:

1 Like

Great Script! Definitely adds immersion to the fire department

1 Like

the showcase gif no longer exists

1 Like

Check again buddy

1 Like

thanks sir, now i can see :fire:

1 Like

was my pleasure help such good creator and also friend :blush:

1 Like

Great work Salute!!!

1 Like

Thank you! Saludos too

This is really cool. However, unless I’m mistaken, it doesnt seem like its possible to have more than one flag location?

1 Like

Hello, thanks for ask that.
Not get but @The_Mist is working on it. I will post the update here :slight_smile:

Well script was made for my brother beaver mlo, but since was a simple thing he thought and ask me if could release for free…what i mean my friend is that wasn’t made with that purpose so obviously is not made for more than one place, but on weekend if i get some free time i will made a 0.2 version of it with that and other new functions

1 Like

And we are very busy preparing the next move :shushing_face: :smirk: :smirk: :smirk:

1 Like

new version almost ready :shushing_face:

1 Like

any update on this?