[FREE] Paraffin Glove/Stub test - Stub Test, Interface, Evidence Database

[FREE] Paraffin Glove/Stub test - Stub Test, Interface, Evidence Database

FDS Development’s Paraffin Glove introduces an immersive mechanic that simulates the detection of gunpowder residue on the hands of players who have recently fired a gun.

:file_folder: Download - GitHub

:spiral_notepad: Documentation

:video_camera: Preview

1. Gunpowder Detection

  • Shooting Event: When a player fires a weapon, their hands are marked as “dirty” with gunpowder residue. This is managed through an event triggered whenever the weapon is used.

2. Hand Testing by Police

  • Hand Test: Police officers can perform a test to detect the presence of gunpowder residue on players’ hands. This test checks the status of the player’s hands and saves the result in a database.
  • Clean User Interface: The test results are presented through a clean and intuitive user interface (UI), clearly showing whether the player’s hands are dirty with gunpowder residue or not.

3. Cleaning Gunpowder Residue

  • Cleaning in Water: If a player wants to clean off the gunpowder residue, they can do so by swimming in water. This mechanism simulates washing the hands, which removes the accumulated gunpowder residue.
  • Stationary Condition: The cleaning process is effective only if the player continues swimming. If the player stops moving, the cleaning process is interrupted, and the gunpowder residue is not removed.

4. Compatibility and Configuration

  • Compatibility: The script is compatible with both ESX and QB frameworks, ensuring wide integration with various FiveM servers.
  • Configurability: The script is fully configurable, allowing server administrators to customize various aspects, such as locales, to suit the specific needs of the server.

Must try other FDSdevelopment resources:

:tada: NEW → ULTRA Banking - Society, Pockets, inspired to Revolut…

:tada:ULTRA Gang and BOSS MENU v2

:tada:ULTRA Radio - Custom Radio, Unique Radios, Jammers

:tada: Post Box - Create your Letters with Customizable Stamps and send to private Post Boxes
:tada: Pause Menu
:tada: Stub Test
:tada: Ultra Motels
:tada: Gym Script
:tada: Graphic Waypoints

Code is accessible Yes
Subscription-based No
Lines (approximately) 6000+
Requirements screenshot-basic
Support Yes
5 Likes

is there the sql missing?

Do you have the sql file?

Sorry for the inconvenience. It has been added in github!

Yes. It has been added today in github!

thank you :slight_smile:

but the fdsdev_gunpowderdata still missing :wink:

Fixed, sorry :slight_smile:

Good job but for QBcore SQL data … i have this error …

“[script:fdsdev_stubTe] SCRIPT ERROR: @fdsdev_stubTest/server/server/server.lua:2: No such export getSharedObject in resource es_extended” … i think its easy fixing for you ?

thank you .

i try this code …
QBCore = exports[‘qb-core’]:GetCoreObject()

local guantoData = {}
local stubResults = {}

RegisterNetEvent(“fdsdev_paraffinGlove:requestData”, function()
local src = source
TriggerClientEvent(“fdsdev_paraffinGlove:recieveData”, src, stubResults, guantoData[GetIdentifier(src)] and guantoData[GetIdentifier(src)].stato or false)
end)

RegisterNetEvent(“realm_script:guanto:syncData”, function(bool)
local src = source
local identifier = GetIdentifier(src)
if not guantoData[identifier] then
guantoData[identifier] = {
identifier = identifier,
stato = bool,
shootday = os.date(“%Y/%m/%d”),
}
exports[‘ghmattimysql’]:execute(‘INSERT INTO fdsdev_gunpowderdata (identifier, stato, shootday) VALUES (@identifier, @stato, @shootday)’, {
[‘@stato’] = bool,
[‘@shootday’] = os.date(“%Y/%m/%d”),
[‘@identifier’] = identifier
})

else
    guantoData[identifier] = {
        identifier = identifier,
        stato = bool,
        shootday = os.date("%Y/%m/%d"),
    }
end

end)

function GetIdentifier(src)
local xPlayer = QBCore.Functions.GetPlayer(src)
return xPlayer.PlayerData.citizenid
end