Jump to content

Remove a letter from a element, is this possible?


denny199

Recommended Posts

Hi, I went over to a problem in my scripting code, is there a way to remove a letter from a element like:

local D2290 = 8 

Then remove the `D` from the element

So it will return `2290` in a string instead of `D2290`

Is this possible?

If not, is there then a alternative way to bypass this?

Because we can't use variables like this:

local 2290 = 5 

Edit: why do I need this?

Because "D2290" is a invalid table ( returns nil )

My table for example:

tableKUT = { 
[D2290]={"3-Seat couch 1" , 2290}, 
} 

Kindly regards,

Danny

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...