Fake Number

Introduction

Quasar Fakenumber is an exclusive DLC for Quasar Smartphone, it is a DLC that will allow you to use SIM cards to change the number of your phone, it includes a menu where it allows you to switch between numbers.

Features

  • Menu to switch between phone numbers.

  • Possibility of using an item as a SIM card.

Dependencies

This package is compatible with es_extended 1.2 and all Legacy.

  • es_extended or qb-core

  • qs-smartphone

Starting order of the assets

ensure es_extended
ensure [inventory]

-- [smartphone]
ensure PolyZone
ensure xsound
ensure screeshot-basic
ensure qs-base
ensure qs-videos
ensure qs-smartphone

-- all 
OTHERS SCRIPTS

-- DLCS
ensure qs-fakenumber

Installation

To run this resource correctly, add the SQL and add the "sim_card" element in your database or shared.lua.

1. Install the sql

INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
	('sim_card', 'Sim Card', -1, 0, 1)
;

CREATE TABLE `phone_numbers` (
	`identifier` VARCHAR(200) NOT NULL DEFAULT '' COLLATE 'utf8mb4_general_ci',
	`data` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
	`defaultNumber` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
	PRIMARY KEY (`identifier`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
;

2. Configure your config.lua

Config = {}
Locales = Locales or {}

Config.Framework = 'esx' -- 'esx' or 'qb'

Config.Language = 'en'

Config.NumberPrefix = '553' -- Prefix of the number
Config.NumberDigits = 6     -- Amount of digits after the prefix
Config.MaxSimCards = 5      -- Max sim cards

--[[
    Number change system using Sim card!

    To execute this function, we must use the item
    selected in Config.SimItems, then we can use the
    Config.SimCommand command to switch between phone numbers.
]]

Config.SimCommand = 'mysimcards'
Config.SimItems = 'sim_card'

--[[
    Command system for number change!

    The command to change the phone number is found in Config.ChangeNumberCommand,
    and with Config.ChangeNumberMax we select the number of numbers that we can use.
    We also have a Config.BannedNumbers so they can't choose certain phone numbers.
]]

Config.EnableChangeNumberCommand = false
Config.ChangeNumberCommand = 'changenumber'
Config.ChangeNumberMax = 9
Config.BannedNumbers = {
    '000000000',
    '111111111',
    '222222222'
}

Last updated