Search the Community
Showing results for tags 'clienside'.
Found 3 results
Hello RageMP Community, I am having a hard time figuring out how to load a JSON file into the Client side to generate a menu. When I do this: var vehicles = require("./[...]/vehicleshops.json"); and restart and join the Server the Error message says that the file "./[...]/vehicleshops.json.js" could not be found. I have also tried import vehicles from ("./[...]/vehicleshops.json") With this attempt it has a problem with the overall Syntax, so it doesn't work either. What is the correct way of loading a JSON file client side, or is there even a working way? Kind regards, ffpgmbh / Fionn