[Release] Radargun / Laser gun v1.1 - Huge Improvements and new UI!

I’m wanting to add version 1 to my server but can only find version 1.1 where can I get version 1

Custom prop would be even better, because then the npc’ wouldn’t react

1 Like

How do I fix it to where the speed and distance is on the screen? On mine it has those numbers above the screen and I can’t make it go on screen. I’d love you no homo if you made it take a reading with a mouse click too just like firing a gun <3

Really like this radargun but I have a slight problem. Can someone help me fix this problem. Thankyou :slight_smile:

1 Like

I have the same problem. Mine are in the exact same position

1 Like

Same problem

Same, is there anyway to edit the UI location?

How did you fix the number screen issue? And by shoot a car do you mean you have it so you can “fire” it like any other gun or do you still have to press E and track the car?

Yes, you equip Vintage Pistol, then aim it like a normal gun with mouse, then hold E to get a reading

is there away to move the ui? mine is so far down i can only see the very top black bar of the ui

Everyone having UI issues, this works it fixed my UI;

edit your style.css inside the radar files,

#speed {
    position: absolute;
    font-family: "Digital";
    font-weight: bolder;
    font-size: 30px;
    margin-top: 12.4%;
    margin-left: 13.0%;
    color: #282828;
}

#range {
    position: absolute;
    font-family: "Digital";
    font-weight: bolder;
    font-size: 30px;
    margin-top: 12.4%;
    margin-left: 21.0%;
    color: #282828;
}
2 Likes

Here is the client.lua around line 80 or so. What I did to disable the radar hud is just comment out the ‘html/init.js’ in the __resource.lua

							if cfg.metric == true then
								local fvspeed = GetEntitySpeed(e)*3.6  -- m/s to kmh
								SendNUIMessage({
									speed = math.ceil(fvspeed),
                                    range = GetDistanceBetweenCoords(GetEntityCoords(isPed),GetEntityCoords(e), true)
								})
								SetNotificationTextEntry('STRING')
								AddTextComponentString(tostring(math.floor(fvspeed * 10) / 10) .. " ~b~KPH")
								DrawNotification(true, false)
							else
								local fvspeed = GetEntitySpeed(e)*2.23694 -- m/s to mph
								SendNUIMessage({
									speed = math.ceil(fvspeed),
                                    range = GetDistanceBetweenCoords(GetEntityCoords(isPed),GetEntityCoords(e), true)
								})
								SetNotificationTextEntry('STRING')
								AddTextComponentString(tostring(math.floor(fvspeed * 10) / 10) .. " ~b~MPH")
								DrawNotification(true, false)
							end

Does this work on FiveM?

The spot for the speed and range are in the wrong spot… I fixed it:

replace the text in “style.css” with this

@font-face {
font-family: ‘Digital’;
src: url(’./fonts/digital_counter_7_italic.ttf’);
}

body {
margin: 0;
padding: 0;
overflow: hidden;
height: 100%;
width: 100%;
}
#speed {
position: absolute;
font-family: “Digital”;
font-weight: bolder;
font-size: 30px;
margin-top: 16.0%;
margin-left: 15.0%;
color: #282828;
}

#range {
position: absolute;
font-family: “Digital”;
font-weight: bolder;
font-size: 30px;
margin-top: 16.0%;
margin-left: 25.0%;
color: #282828;
}

#lasergun {
display: none;
height: 490px;
width: 600px;
margin-left: 70%;
margin-top: 38%;
background: url(“Radargun.png”);
}

Thank me later :slight_smile:

2 Likes

The script is working and is exactly what we need. Although, when pointing the laser at cars coming towards me, and clicking “E”, it doesn’t register until the distance is about 28 away. But when pointing at it when it passes me and I click “E” I can get the speed up to distances at 70-85… Any fix for this? :slight_smile:

It Is not picking up the speed or anything for me!!!

Looking for a little help here as i am new to all this; i have the radar gun in however it fires bullets and i am unable to pull up the menu. What did i do wrong and what do i need to fix? Any suggestions would be greatly appreciated. Thank you

The whole Radar doesnt show up for me know. WTF!!!

i got the same issue what did you do to fix it

Any suggestions on how to increase the acquisition range? I can only get an oncoming car about about 40 and a car moving away out to about 80