Skip to content

this is an evidence marker for qbcore for police to use it

Notifications You must be signed in to change notification settings

WardDevs/evidence-markers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

evidence-markers

this is an evidence marker for qbcore for police to use it credits to the original author of the prop

you need to do this things

First add this to your qb-policejob/config.lua under Config.Objects

["evidence"] = {model = `ril1`, freeze = true},

Second (this step is optional) add this to your qb-policejob/client/object.lua:137 (use this if you want to use it with radialmenu)

RegisterNetEvent('police:client:SpawnEvidenceMarker', function()
    QBCore.Functions.Progressbar("spawn_object", Lang:t("progressbar.place_object"), 2500, false, true, {
        disableMovement = true,
        disableCarMovement = true,
        disableMouse = false,
        disableCombat = true,
    }, {
        animDict = "anim@narcotics@trash",
        anim = "drop_front",
        flags = 16,
    }, {}, {}, function() -- Done
        StopAnimTask(PlayerPedId(), "anim@narcotics@trash", "drop_front", 1.0)
        TriggerServerEvent("police:server:spawnObject", "evidence")
    end, function() -- Cancel
        StopAnimTask(PlayerPedId(), "anim@narcotics@trash", "drop_front", 1.0)
        QBCore.Functions.Notify(Lang:t("error.canceled"), "error")
    end)
end)

Then (this step is also optional) add this to your qb-radialmenu/config.lua (use this if you want to use it with radialmenu)

{
    id = 'evidencemarker',
    title = 'Evidence Marker',
    icon = 'caret-up',
    type = 'client',
    event = 'police:client:SpawnEvidenceMarker',
    shouldClose = false
},

Done!

About

this is an evidence marker for qbcore for police to use it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages