ok in the original script it has this code that triggers a police alert on a 1 in 3 chance. it looks like this:
local randomReport = math.random(1, 3)
if randomReport == 2 then
local plyPos = GetEntityCoords(GetPlayerPed(-1), true)
local s1, s2 = Citizen.InvokeNative( 0x2EB41072B4C1E4C0, plyPos.x, plyPos.y, plyPos.z, Citizen.PointerValueInt(), Citizen.PointerValueInt() )
local street1 = GetStreetNameFromHashKey(s1)
local street2 = GetStreetNameFromHashKey(s2)
TriggerServerEvent(‘dispatch’, “drug”, street1, plyPos.x, plyPos.y, plyPos.z)
obviously that is not written for vRP so that code is worthless to us but i tried a few different ways to do something similar for vRP to make it do something similar to when players steal cars, basicly adding wanted level and polce get the blue star on the map but everything i tried failed.
Like i said i am brand new to coding i have maybe been doing this for a week so i probably did something wrong everytime i tried cause i barely know what i am doing.
this little feature is a huge deal for an RP server like it adds an element of risk to selling drugs and i am really hoping you guys can help me get this added not only for me but for others who use this script as well