Manually sell to a NPC

Trigger to start selling to an NPC, as you would do after pressing E to sell in the default method

Event

TriggerEvent("drugs_creator:sellToNPC", ped)

Parameters

NameData TypeDescription

ped

ped (integer)

The target ped's handle

Example

local closestPed = ESX.Game.GetClosestPed()

TriggerEvent("drugs_creator:sellToNPC", closestPed)

Last updated