Skip to content

Manually sell to an PED

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

Event

TriggerEvent("advanced_drugs_creator:sellToNPC", ped)

Parameters

Name Data Type Description
ped ped (integer) The target ped's handle

Example

local closestPed = ESX.Game.GetClosestPed()

TriggerEvent("advanced_drugs_creator:sellToNPC", closestPed)