Jump to content

API Problem


3B00DG4MER

Recommended Posts

Nope. You don't need to use any php script. Just use fetchRemote and request JSONC format. MTA json functions might not work properly. You need to use one of JSON modules. There are tons of jsons modules available for lua, google it.

Yo help me Please !

i added Jsons Module what now ?

Now use the json decode function to convert the json string into a table.

Link to comment
Nope. You don't need to use any php script. Just use fetchRemote and request JSONC format. MTA json functions might not work properly. You need to use one of JSON modules. There are tons of jsons modules available for lua, google it.

Yo help me Please !

i added Jsons Module what now ?

Now use the json decode function to convert the json string into a table.

Wait Wait

how i can add Json Module

i can't find it in the internet(It was Mysql Module and not Json :/)

Link to comment
Now all you have to do is to convert json string into json table using json decode function from the module. You don't to call module function...

i didn't call the json module

the json.lua calls the module

PLEASE I CAN'T FOUND THE :o MODULE

give me the url and NOT GOOGLE SEARCH

Dude. It was the first link. If you don't understand this then educate yourself.

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