Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/09/20 in Posts

  1. I'll give a brief explanation. Make an HTML page for your login and registration. Place these html files inside your server-files/client_packages. Inside you HTML use JavaScript to check if the input text field are not empty. If they are empty then show an error using jQuery to edit a tag using it's ID attribute. If the input text is not empty then inside the HTML use mp.trigger to invoke a function inside your client side script. In the client side script use Event.Add inside the class' constructor. When the function is called in the client-side script use RAGE.Events.CallRemote to invoke a function in your server-side script. Inside the server-side script make a RemoteFunction attribute and use this to fetch the data from the client-side script in your server-side. Inside the server-side when the data is fetched, manipulate the data however you want. Like storing it in a file or databasethen from the server-side invoke a NAPI.Clientevent.TriggerClientEvent to invoke a function in your client-side script. And inside the client-side script when you fetch the call from the server, disable the CEF that you created in the constructor of the client-side class.
    1 point
  2. Yes, you can add this to the server. Note that database requests are sent from the server(node.js).
    1 point
  3. Server Script Update (v0.1.2k) | January, 2020 This update adds advert location sharing / GPS support, removable duty hats, and multiple bug fixes. Features & Adjustments Duty hats can now be put on / taken off using /togdutyhat Added GPS support to adverts /ad now takes a true/false parameter to specify whether to share your location or not If a person created an advert while inside an interior, the GPS location will be the interior entrance /adgps <advert id> allows you to add a blip to the advert location & set your GPS to that location /adcleargps allows you to clear your current GPS target Advert GPS will also clear when you arrive at the destination Fixes: Clientside performance optimization for weapon attachments Fixed a clientside error when crouching 0003329: FPS lag spikes - caused by a script
    1 point
×
×
  • Create New...