Using your or our Exports

We will be using a custom export for this tutorial

We will be going over how to use, create and work with exports. The pages are marked on the side of your screen in-case you already read the rest of the docs and figured it out!

Creating our callout (ps-dispatch/server/sv_dispatchcodes.lua)

	["methRunReport"] = {
		displayCode = '10-77', 
		description = "Drug Run In Progress", 
		radius = 0, 
		recipientList = { 'police' }, 
		blipSprite = 514, 
		blipColour = 32, 
		blipScale = 1.5, 
		blipLength = 2, 
		sound = "Lose_1st", 
		sound2 = "GTAO_FM_Events_Soundset", 
		offset = "false", 
		blipflash = "false"
	},

Creating the Export (ps-dispatch/client/cl_events.lua)

This callout of dispatch makes use of vehicle information. Which means that the user needs to be in a vehicle for the callout to happen.

If you don't want or require vehicle information then do the following.

Creating an event with our export

Use the export that HAS vehicle information

Use the export that does NOT have vehicle information.

Basically put you add the export exports['ps-dispatch']:methRunReport() where you would want the police to get a notification of what is happening. You can use ps-dispatch to replace qb-core events for notifying police.

A full script!

Video: Soon Download: Soon

Last updated