πŸ”Server-Exports

Check if a Vehicle has Insurance

  • Export: HasCarInsurance(plate, cb)

  • Description: Checks if a vehicle with the given plate has insurance.

Usage:

exports['m-Insurance']:HasCarInsurance('ABC123', function(hasInsurance)
    if hasInsurance then
        print("Vehicle is insured")
    else
        print("Vehicle is not insured")
    end
end)

Check if a Vehicle has Registration

  • Export: HasCarRegistration(plate, cb)

  • Description: Checks if a vehicle with the given plate has registration.

  • Usage:

exports['m-Insurance']:HasCarRegistration('ABC123', function(hasRegistration)
    if hasRegistration then
        print("Vehicle is registered")
    else
        print("Vehicle is not registered")
    end
end)

Check if a Player has Health Insurance

  • Export: HasHealthInsurance(identifier, cb)

  • Description: Checks if the player with the given citizenid has health insurance.

  • Detail: Identifier must be citizenID

  • Usage:

Check if a Player has Home Insurance

  • Export: HaveHomeInsurance(identifier, cb)

  • Description: Checks if the player with the given citizenid has home insurance.

  • Detail: Identifier must be citizenID

  • Usage:

Get Insurance Data for a Player or Vehicle

  • Export: GetInsuranceData(insuranceType, identifier, cb)

  • Description: Retrieves the insurance data based on the insurance type (vehicles, health, or home).

  • Usage:

Check if a Vehicle have Documents Suspended

  • Export: HasDocumentsSuspended(plate, cb)

  • Description: Grants vehicle insurance to a player for the specified plate and model with an expiration date.

  • Usage:

Give Vehicle Insurance

  • Export: GiveCarInsurance(src, plate, model, expire_months, identifier, owner_name)

  • Description: Grants vehicle insurance to a player for the specified plate and model with an expiration date.

  • Usage:

Give Vehicle Registration

  • Export: GiveCarRegistration(src, plate, model, expire_months, identifier)

  • Description: Grants vehicle registration to a player for the specified plate and model with an expiration date.

  • Usage:

Give Health Insurance

  • Export: GiveHealthInsurance(src, identifier, expire_months, owner_name)

  • Description: Grants health insurance to a player for the specified identifier with an expiration date.

  • Usage:

Give Home Insurance

  • Export: GiveHomeInsurance(src, identifier, expire_months, owner_name)

  • Description: Grants home insurance to a player for the specified identifier with an expiration date.

  • Usage:

Remove Vehicle Insurance

  • Export: RemoveCarInsurance(plate)

  • Description: Removes insurance for the vehicle with the given plate.

  • Usage:

Remove Vehicle Registration

  • Export: RemoveCarRegistration(plate)

  • Description: Removes registration for the vehicle with the given plate.

  • Usage:

Remove Health Insurance

  • Export: RemoveHealthInsurance(identifier)

  • Description: Removes health insurance for the player with the given identifier.

  • Usage:

Remove Home Insurance

  • Export: RemoveHomeInsurance(identifier)

  • Description: Removes home insurance for the player with the given identifier.

  • Usage:

Last updated