--bydefault we add ox_lib notification you can edit according to your needfunctionnotification(title,text,duration,type,icon) lib.notify({ title = title, description = text, type =type, duration = duration, icon = icon, position ='top' })end
TextUi:
Textui can be changed in these functions
--by default we add ox lib textuifunctionTextUi(text)if text then--for show textui comment bottom line and add ur own lib.showTextUI(text)else--for remove tesxtui comment bottom line and add ur own lib.hideTextUI()endend
Police Dispatch:
for police dispatch calls you can change modify this function
--by default we already setup qs-dispatch,cd_dispatch,op-dispatch--if you want to use any of your own then modify this functionfunctiondispach(coords)-- change only if you know what you are doingifGetResourceState('qs-dispatch') =='started' then exports['qs-dispatch']:DrugSale()elseifGetResourceState('cd_dispatch') =='started' thenlocal data = exports['cd_dispatch']:GetPlayerInfo()TriggerServerEvent('cd_dispatch:AddNotification', { job_table = {'police', }, coords = data.coords, title ='10-15 - Drug Selling', message ='A '..data.sex..' selling drug at '..data.street, flash =0, unique_id = data.unique_id, sound =1, blip = { sprite =431, scale =1.2, colour =3, flashes =false, text ='911 - Drug Sale', time =5, radius =0, } })elseifGetResourceState('op-dispatch') =='started' thenlocal job ="police" -- Jobs that will recive the alertlocal text ="A drug deal progress at"..GetStreetNameAtCoord(coords.x, coords.y, coords.z) -- Main text alertlocal coordinates = coords -- Alert coordslocal id = cache.serverId -- Player that triggered the alertlocal title ="Drug Deal" -- Main title alertlocal panic =false-- Allow/Disable panic effectTriggerServerEvent('Opto_dispatch:Server:SendAlert', job, title, text, coordinates, panic, id)elseTriggerServerEvent('fs_trapphone:dispach', coords)endend
Third Eye Target System
by default we added ox target as target system but if you want to add any other target system then you can modify this
modify this function if you want to apply ur xp system or want to give something or item on each item sell
----only trigger on successfully sell of drug for xp system etcAddEventHandler('fs_trapphone:onDrugSell',function (serverId,itemname,quantity)-- code something if u want otherwise don't touch it if you dont know what its meanend)