Windscreen Clamp
How the windscreen clamp is fitted, what it does, and the ways it comes off.
clamp_windscreen suctions onto the windscreen instead of a wheel. It has no key and no lock to pick or grind.
#Fitting
- Use a
clamp_windscreenon foot. Every windscreen withinaimDistanceis marked. - Aim at one and press E.
- Set the release code, 4 to 8 digits by default. With
customPricingornotice.fitterNoteenabled, the same form asks for the release fee and a note. - You walk over and fit the clamp. The release code is shown in your notification.
The vehicle needs an intact windscreen that can be reached from the ground. Motorcycles and vehicles without a windscreen can't take one, and a vehicle takes one windscreen clamp at most.
Anyone who enters the code at the keypad can take the clamp off, so hand it out with the fine. To send it through your billing, MDT or phone resource, use OnWindscreenClampFitted in server/unlocked/windscreen.lua or the GetWindscreenClampCode exports. See Exports & Events.
#While Fitted
The driver is held in first person, so the clamp blocks the view. Turn this off with windscreen.forceFirstPerson.
Moving the vehicle more than 2 metres sounds the clamp's alarm for 30 seconds and can alert the police. The alarm beeps from the clamp through zyke_sounds 0.7.0 or newer. Without it, the vehicle's own alarm sounds instead.
A windscreen clamp on its own doesn't lock any wheel or freeze the vehicle.
#Taking It Off
#Keypad
Choose "Use clamp keypad" on the clamp. The keypad shows the plate, the release fee when it can be paid, and the clamp notice's instructions, contacts and note.
Enter the release code and press "Enter code", or pay the release fee when windscreen.allowPayment is on. With phone payments on and a supported phone running, the keypad points to the Clamp Release app instead. See Phone App & Website.
The released clamp lifts off into your arms. Press X to set it down, or Shift + X to put it in your inventory.
Five wrong codes lock the keypad for everyone for five minutes and sound the alarm. Paying still works while it is locked.
Officers on officer.jobs see the release code on the keypad. Every lookup is logged. Turn it off with officer.codeLookup.
#Smashing the Windscreen
Hold one of the weapons in windscreen.smash.weapons, such as a crowbar, hammer or bat, and choose "Smash the windscreen". The alarm sounds from the first swing. After 6 seconds the windscreen breaks and the clamp falls off with the glass.
Breaking the windscreen any other way, such as with gunfire or a crash, frees the clamp too.