DyScript
  • Welcome
  • Official Store
  • Discord
  • Assets
    • ds-arcade
      • Installation
      • FAQ
      • Configuration Files
      • Mapping
    • ds-soundbuildings
      • Installation
      • FAQ
      • Configuration Files
    • ds-carkeys
      • Installation
      • FAQ
      • Configuration Files
      • Developer API
        • Client Exports
        • Serveur Exports
      • Commands
    • ds-notifications
      • Installation
      • Show code
      • FAQ
      • Developer API
        • Client Exports
        • Serveur Exports
    • ds-pedoffline
      • Installation
      • FAQ
      • Configuration Files
      • SQL
    • ds-freecam
      • Installation
      • FAQ
      • Configuration Files
Powered by GitBook
On this page
  • HasCarKey
  • GiveCarKey
  1. Assets
  2. ds-carkeys
  3. Developer API

Client Exports

HasCarKey

Checks if the player has the key to the vehicle with the given license plate.

-- @param {plate: string}: Put a vehicle plate
local HasCarKey= exports['ds-carkeys']:HasCarKey(plate)

GiveCarKey

Gives a key for the vehicle with the specified plate and model to the nearest player (or self depending on implementation).

-- @param {plate: string}: Put a vehicle plate
-- @param {model: string}: Vehicle model
local giveCarKey= exports['ds-carkeys']:giveCarKey(plate, model)

Last updated 11 days ago