API

Client


IsInsideTurf

RegisterCommand('test', function()
    local inside, name = exports['uniq_turfwars']:IsInsideTurf()

    if inside then
        print(('You are inside %s'):format(name))
    end
end)

Server


IsPlayerInsideTurf

RegisterCommand('test', function (source, args, raw)
    local inside, turfName exports['uniq_turfwars']:IsPlayerInsideTurf(source)

    if inside then
        -- code
    end
end)

IsTurfOwner


GetTurfData


AreCoordsInsideTurf

Last updated