Exports

All drugs used for server exports needs to be previously registered in server/editable/_drugs.lua > Config.Drugs table, otherwise you won't be able to see them in the APP.

getLab()

If player is inside a lab it will return the lab identifier or false if is outside.

local lab = exports['av_drugs']:getLab()
if lab then
    print(lab)
else
    print("Player isn't inside a lab")
end

Last updated