3B00DG4MER Posted December 16, 2014 Share Posted December 16, 2014 Hi Guys, today i found an Youtube API but i don't know how do i use them in-game Please i need a help (I don't have any idea how to use an API) https://developers.google.com/youtube/v ... earch/list Link to comment
Anubhav Posted December 16, 2014 Share Posted December 16, 2014 You have to make a .php file and use PHP SDK. In PHP file you've to use the API so it returns perfectly! Link to comment
3B00DG4MER Posted December 16, 2014 Author Share Posted December 16, 2014 You have to make a .php file and use PHP SDK. In PHP file you've to use the API so it returns perfectly! I know only some of PHP can you help me ! Please ! Link to comment
Saml1er Posted December 16, 2014 Share Posted December 16, 2014 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. Link to comment
3B00DG4MER Posted December 17, 2014 Author Share Posted December 17, 2014 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 ? Link to comment
Saml1er Posted December 17, 2014 Share Posted December 17, 2014 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
3B00DG4MER Posted December 17, 2014 Author Share Posted December 17, 2014 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
Saml1er Posted December 17, 2014 Share Posted December 17, 2014 Remember, google is your friend. Link to comment
3B00DG4MER Posted December 18, 2014 Author Share Posted December 18, 2014 Remember, google is your friend. it's says Attempt to call global 'Module' (a nil value) Link to comment
Saml1er Posted December 18, 2014 Share Posted December 18, 2014 Remember, google is your friend. it's says Attempt to call global 'Module' (a nil value) Which module did you add? O_o Did you define the script in meta? Link to comment
3B00DG4MER Posted December 18, 2014 Author Share Posted December 18, 2014 Remember, google is your friend. it's says Attempt to call global 'Module' (a nil value) Which module did you add? O_o Did you define the script in meta? json.lua file i added it on meta it's wrotten module("json") Link to comment
Saml1er Posted December 18, 2014 Share Posted December 18, 2014 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... Link to comment
3B00DG4MER Posted December 18, 2014 Author Share Posted December 18, 2014 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 FUCKING MODULE give me the url and NOT GOOGLE SEARCH Link to comment
Saml1er Posted December 18, 2014 Share Posted December 18, 2014 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 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now