Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

erp_selltonpc

thelindat edited this page Feb 20, 2021 · 2 revisions

erp_selltonpc - client.lua

Find

local playerCoords = GetEntityCoords(PlayerPedId())
streetName,_ = GetStreetNameAtCoord(playerCoords.x, playerCoords.y, playerCoords.z)
streetName = GetStreetNameFromHashKey(streetName)

exports['mythic_notify']:SendAlert('inform', 'The buyer is calling the police!', 4000)
TriggerServerEvent('np_selltonpc:saleInProgress', streetName)

Replace with

local playerCoords = GetEntityCoords(PlayerPedId())
local data = {displayCode = '420', description = 'Drug sale in progress', isImportant = 1, recipientList = {'police'}, length = '4000'}
local dispatchData = {dispatchData = data, caller = 'Local', coords = playerCoords)}
TriggerServerEvent('wf-alerts:svNotify', dispatchData)
Clone this wiki locally