DamonSalvatore 0 Posted July 25, 2020 Share Posted July 25, 2020 Hello, i'm tried to add a html content into a command. Example: mp.events.addCommand('report', (player) => { var browser = mp.browsers.new("package://login/report.html"); }); But not work.What can i do? I use this gamemode: Link to post Share on other sites
SenseiFeet 2 Posted July 25, 2020 Share Posted July 25, 2020 looks correctly? Link to post Share on other sites
MrPancakers 152 Posted July 26, 2020 Share Posted July 26, 2020 You're mixing serverside and clientside code, you create the command serverside and you make the browser on the clientside Read thesehttps://wiki.rage.mp/index.php?title=Getting_Started_with_Development https://wiki.rage.mp/index.php?title=Getting_Started_with_Client-side You can call a clientside event using https://wiki.rage.mp/index.php?title=Player::call So you'd create a clientside event to create this browser Link to post Share on other sites
DamonSalvatore 0 Posted July 26, 2020 Author Share Posted July 26, 2020 6 hours ago, MrPancakers said: You're mixing serverside and clientside code, you create the command serverside and you make the browser on the clientside Read thesehttps://wiki.rage.mp/index.php?title=Getting_Started_with_Development https://wiki.rage.mp/index.php?title=Getting_Started_with_Client-side You can call a clientside event using https://wiki.rage.mp/index.php?title=Player::call So you'd create a clientside event to create this browser ewwwww okk, thank you sir !! I fixed the problem. Link to post Share on other sites
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