• Send data to js ?
    1 replies, posted
Can i send data (for example it pl money or pl health) to vue js , or php ?
If you have a web server, you can absolutely do this. I suggest that you use the http.Post function to send the data to your web server. For example, -- This is the money variable, set it to whatever function or variable you use to get money. local money = getMoneyExample() -- This is the health variable, set it to whatever function or variable you use to get the health. local hp = getHPExample() http.Post( "http://example.com/hook.php", { cash = money, health = hp }, function( result ) if result then print("The web call was successful and the money + hp were updated in the database.") end end, function( failed ) print( "The web call failed because of the following reason: \n"..failed ) end ) On the JS end or PHP end, simply create a function to read the $_POST (for php) request and to update the database (I assume you are updating a database). I hope that this helped you out!
Sorry, you need to Log In to post a reply to this thread.