Open methods

We have some open methods on the client and server of jewel. These allow you can change the item reward calculations, and do different checks before a robbery and more.

OpenMethods = {}

-- If you want to make some checks before the robbery starts, you can do it here
function OpenMethods.canStartRobbery()
    return true
end

-- If you want to make some checks before a police presses the keypad, you can do it here
function OpenMethods.canPressKeypad()
    return true
end

-- If you want to make some checks before someone steals a painting, you can do it here
function OpenMethods.canStealPainting()
    return true
end

-- If you want to make some checks before someone smashes a tray, you can do it here
function OpenMethods.canSmashTray()
    return true
end

function OpenMethods.drawMarker() -- Draw the marker for the trucker menu (Only if UseTarget is false)
    local r, g, b, a = table.unpack(Config.Options.MarkerOptions.DrawMarkerColor)
    DrawMarker(27, vector3(Config.Options.ShopMiddle.x, Config.Options.ShopMiddle.y, Config.Options.ShopMiddle.z - 0.95), vector3(0.0, 0.0, 0.0), vector3(0.0, 0.0, 0.0), vector3(1.0, 1.0, 1.0), r, g, b, a, false, false, 2, false, false, false)
end

Last updated