AmyrAhmady / omp-node

[WIP] open.mp nodejs component to write your scripts in TS/JS
9 stars 1 forks source link

Player GameText #3

Open adriantandara opened 1 day ago

adriantandara commented 1 day ago

I tried to display a gameText upon login, but it doesn't show. Below is an example of the code I tried. I am not receiving any logs or errors. It simply doesn't display anything.

import { omp } from '@open.mp/node';

omp.on('playerConnect', (player) => {
    player.showGameText('~w~Test1~n~~g~Test2', 5000, 2); // not showed
});
adriantandara commented 1 day ago

I tested with Core.showGameTextForAll and it's works, the problem is only for the player.