[FREE] r_simcards - SIM system for NPWD Phone

R_SIMCARDS

Hello everyone!

Hereby we present our custom script that allows you to add sim cards to your NPWD. This script allows players to have multiple phone numbers at the same time.

VIDEO PREVIEW [r_simcards]

Features

  • Script is standalone
  • Possibility of having several sim cards
  • The possibility of making a copy of the sim card and blocking the old one.
  • Fully optimized
Dependencies

Installation

  • Download script
  • Add r_simcards to your resources directory
  • Run sql.sql and add “sim_card” item into your ox_inventory
  • Add this in your server.cfg:

ensure r_simcards

ox_inventory/data/items.lua
['sim_card'] = {
	label = 'Sim Card',
	weight = 10,
	stack = false,
	close = true,
	description = nil,
	consume = 0,
	client = {
		remove = function()
			exports['r_simcards']:checkSim()
		end,
		add = function()
			exports['r_simcards']:checkSim()
		end,
	},
	server = {
		export = 'r_simcards.sim_card',
		metadata = {
            number = nil,
			ssn = nil
        }
	},
},

DOWNLOAD

OTHER RESOURCES

Code is accessible Yes
Subscription-based No
Lines (approximately) 200
Requirements npwd ox_lib ox_inventory oxmysql
Support Partially
16 Likes

Does it work for qb-inventory aswell?

its compatible with qbcore?

It is standalone but requires ox_inventory and ox_lib

The script only supports ox_inventory, but you can edit it yourself

if the card is used by someone else, can they see your conversations the ones you made?

It doesn’t work

Yes, another person can see your conversations.

1 Like

Did you install the script correctly?

1 Like

yes

You are trying to make a copy of the sim card, but you probably don’t have any that can be copied.

Checking the console tells me that it cannot export the getPlayerData function

Probably your NPWD config is wrong

Its compatible with qs-smartphone?

1 Like

No it’s only compatible with npwd

Well, it let me use phone even if i dont have sim_card item in eq, any advice?

Hi @requestrip , nice resource, I was testing (just for fun) and seems the export
exports['r_simcards']:checkSim() Inside the ox_inventory data->items hangs the inventory itself.

Have you experienced something similar?

May be somthing changed with latest inventory

Question, what if the player doesn’t have a SIM card at all, does the cell phone not work?

for me it doesn’t work when i go on the marker and i press E all starts no working

it shows me this error