Why hud sprite deosnt work. When i call function nothing happens, no error console/logs.
Sprite precaches but this function doesnt work. It's working only in CSO?
P.S.I used client print to debug and the lines in the function are parsed from start to end but there nothing appears on screen.
It doesnt even show in log or console some kind of error like "invalid message id .." or something. Just nothing happens like the lines are empty....
PHP Code:
public DisplaySprite(id, const iSprite) {
if(!is_user_connected(id))
return PLUGIN_CONTINUE;
static origin[3];
get_user_origin(id, origin);
message_begin(MSG_PVS, SVC_TEMPENTITY, origin);
write_byte(TE_SPRITE);
write_coord(origin[0]);
write_coord(origin[1]);
write_coord(origin[2]+65);
write_short(iSprite);
write_byte(10);
write_byte(250);
message_end();
return PLUGIN_CONTINUE;
}