Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/10/18 in all areas

  1. Version 1.0.0

    420 downloads

    Before the great work of Rene Sackers is forgotten, I modified the ServerMan a little for Rage:MP. https://github.com/Rene-Sackers/gta-network-server-man
    1 point
  2. you need the Player::remoteId property mp.events.add('render', () => { mp.players.forEachInStreamRange(player => { const position = player.position; mp.game.graphics.drawText(`${player.name} [${player.remoteId}]`, [position.x, position.y, position.z], { font: 4, color: [255, 255, 255, 255], scale: [0.5, 0.5], outline: true }) }); });
    1 point
  3. Hi back, The solution was quite simple. The idea is to use the hash (#) in the Angular route. Here is the Angular documentation about this topic. Thanks @Pron πŸ‘‘ for his help :). app-routing.module.ts (Angular routing module): @NgModule({ imports: [RouterModule.forRoot(routes, { useHash: true })], exports: [RouterModule] }) export class AppRoutingModule {} cef.js: mp.events.add("Login_Show", (defaultLogin) => { login_destroyCef(); var url = `${baseUrl}login/${defaultLogin}`; loginCef = mp.browsers.new(url); }); Server side (C#): [Command("show")] public void OnShowCommand(Client client, string command) { NAPI.ClientEvent.TriggerClientEvent(client, "Login_Show", "DefaultLoginFromServer"); } Note that it is a temporary ugly debugging code, but it can give a good idea about how do it correctly. C0b0ll
    1 point
×
×
  • Create New...