Jump to content

Pulling a value from sql and then turning it into an element


callum123

Recommended Posts

Posted

So, if I want to select a vehicle from an SQL database and then pull it into the code, how can I then turn that into an element so then I can use getVehiclePlate etc...

So far I have it where Io pull the certain vehicles from the SQL and then populate a gridlist clientside. Trouble is I need to get like the vehicles name and lots of other details of the vehicles.

I think this sort of makes sense, thanks for your help.

Posted

whats it look like in your db?

is it like model id/spawn coords/colors/...?

if so, then the element you should refer to is the one createVehicle returns

you call it when you loop through the returned database rows

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...