[RELEASE] Police ALPR

roleplay
police
radar
alpr
#43

if ( not IsDisabledControlPressed( 1, 51 ) and IsDisabledControlJustPressed( 1, 28 ) ) then

This will make it where you to press both…

0 Likes

#44

Are there certain controls that you can use only in the car? I used that code and changed it to 36 & 38 per the controls document and its not working.

My code is:

if ( not IsDisabledControlPressed( 1, 36 ) and IsDisabledControlJustPressed( 1, 38 ) ) and IsPedInAnyPoliceVehicle(GetPlayerPed(-1)) then

EDIT:

  • added not in front of second IsDiabled… still failed.
  • Tried 132 (LEFT CTRL) + 80 ( R )… failed
0 Likes

#45

how do you make it so, the ALPR saves the data if you exit or turn off your vehicle??

0 Likes

#46

Is there a way I can change the Button from Numpad 5 to Ctrl M or something please?

0 Likes

#47

hi, i would like to know how can i edit mph to kmh

0 Likes

#48

@Brock70 How would i go about increasing the distance in the front?

0 Likes

#49

How would i make the box appear in the middle left of my screen

0 Likes

#50

There’s an editor somewhere in the releases, get the position from that and edit my script to the position you wish to have it

0 Likes

#51

how to know the position of the display ?? I would also like to change it to put it in the middle :stuck_out_tongue:

0 Likes

#52

Cann we change from Mph for Km/h?

0 Likes

#53

@HyzZy this seems to be a popular request. I’ll make a PR unless the author wants to implement it.

0 Likes

#54

How can I make command with this script, for set the velocity I want on my radar? thank you

0 Likes

#55

Mind explaining a bit more?

0 Likes

#56

I know its probably a lot to ask, but would it be possible to add some more interactivity to it. Such as a lock button to keep the license plate up?

0 Likes

#57

Can you link me that skin? I really like it!

0 Likes

#58

whats that car pack

0 Likes

#59

what he said

0 Likes

#60

is there a way to disable it for the polmav?

0 Likes

#61

Change 2.236936 by 3.609… :smile:

Right after

if IsControlJustPressed(1, 127) and IsPedInAnyPoliceVehicle(GetPlayerPed(-1)) then
   if radar.freeze then radar.freeze = false else radar.freeze = true end
end

add this :
Method 1 for automatic decrease, increase with Numpad + and -
(Pretty fast)

while IsDisabledControlPressed(1, 96) and radar.shown do
   Citizen.Wait(0)
   radar.maxSpeed = radar.maxSpeed + 1
   DrawRect(0.508, 0.94, 0.196, 0.116, 0, 0, 0, 150)
   DrawAdvancedText(0.591, 0.903, 0.005, 0.0028, 0.4, "Front Radar", 0, 191, 255, 255, 6, 0)
   DrawAdvancedText(0.591, 0.953, 0.005, 0.0028, 0.4, "Rear Radar", 0, 191, 255, 255, 6, 0)
   DrawAdvancedText(0.6, 0.928, 0.005, 0.0028, 0.4, radar.info, 255, 255, 255, 255, 6, 0)
   DrawAdvancedText(0.6, 0.979, 0.005, 0.0028, 0.4, radar.info2, 255, 255, 255, 255, 6, 0)
end
while IsDisabledControlPressed(1, 97) and radar.maxSpeed > 1 and radar.shown do
   Citizen.Wait(0)
   radar.maxSpeed = radar.maxSpeed - 1
   DrawRect(0.508, 0.94, 0.196, 0.116, 0, 0, 0, 150)
   DrawAdvancedText(0.591, 0.903, 0.005, 0.0028, 0.4, "Front Radar", 0, 191, 255, 255, 6, 0)
   DrawAdvancedText(0.591, 0.953, 0.005, 0.0028, 0.4, "Rear Radar", 0, 191, 255, 255, 6, 0)
   DrawAdvancedText(0.6, 0.928, 0.005, 0.0028, 0.4, radar.info, 255, 255, 255, 255, 6, 0)
   DrawAdvancedText(0.6, 0.979, 0.005, 0.0028, 0.4, radar.info2, 255, 255, 255, 255, 6, 0)
end

OR
Method 2 :
Gradually 5 by 5

if IsDisabledControlJustPressed(1, 96) and radar.shown then
   radar.maxSpeed = radar.maxSpeed + 5
end
if IsDisabledControlJustPressed(1, 97) and radar.maxSpeed > 5 and radar.shown then
   radar.maxSpeed = radar.maxSpeed - 5
end

OR
With ESX, Method 3:
Manually set speed limit with Numpad ENTER :

if IsControlJustPressed(1, 201) and radar.shown then
  ESX.UI.Menu.Open(
  'dialog', GetCurrentResourceName(), 'set_speed_limit',
  {
    title = "Enter the new speed limit :",
  },
  function(data, menu)
    menu.close()
    if data.value ~= nil then
      radar.maxSpeed = data.value
    else
      radar.maxSpeed = 50
    end
   end,
  function(data, menu)
    radar.maxSpeed = 50
    menu.close()
  end)
end

Enjoy :slight_smile:

1 Like

#62

This doesn’t work half the time

0 Likes