Skip to content

hasResource

Checks if a resource exists on the server.

Syntax

lua
Ham.hasResource(resourceName)

Parameters

NameTypeDescription
resourceNamestringResource name to check

Returns

  • boolean - true if the resource exists

Example

lua
if Ham.hasResource("es_extended") then
    print("ESX server detected")
end

See Also

Released under the ISC License.