Exports

The NF_DmvSchool script provides several exports that can be used by other resources to interact with the DMV system.

Client Exports

Check License

exports['NF_DmvSchool']:HasLicense(licenseType)

Checks if a player has a specific license type.

  • licenseType (string): The type of license to check ('car', 'motorcycle', 'truck', 'bus')

  • Returns: boolean

Get License Info

exports['NF_DmvSchool']:GetLicenseInfo(licenseType)

Gets detailed information about a specific license.

  • licenseType (string): The type of license to get info for

  • Returns: table

Server Exports

Give License

Gives a license to a player.

  • source (number): The player's server ID

  • licenseType (string): The type of license to give

  • Returns: boolean

Remove License

Removes a license from a player.

  • source (number): The player's server ID

  • licenseType (string): The type of license to remove

  • Returns: boolean

Check License

Checks if a player has a specific license.

  • source (number): The player's server ID

  • licenseType (string): The type of license to check

  • Returns: boolean

Get All Licenses

Gets all licenses for a player.

  • source (number): The player's server ID

  • Returns: table

Example Usage

Last updated