Can i see actors while OnPlayerRequestClass
#1

hi i created two actors beside my main player in OnPlayerRequestClass but they are not showing while i am selecting a skin i just wanted to know is it possible to see actors while selecting skins or not because i can see the actors after i spawn
Reply
#2

Show your onplayerrequestclass.
Reply
#3

Perhaps you forgot to set a camera?
Like @CannonBolt said, show us your OnPlayerRequestClass

also if you did forget to set a camera, use these

PHP код:
SetPlayerCameraPos 
PHP код:
SetPlayerCameraLookAt 
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
Reply
#4

i set the camera
Код:
        //gamemodeint
	Actor = CreateActor(162, -1428.7665,-952.0853,201.0495,171.7908);
	ApplyActorAnimation(Actor, "PED", "FIGHTA_2", 4.1, 1, 0, 0, 0, 0);

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, -1414.1461,-954.4151,202.1792);
	SetPlayerCameraLookAt(playerid, -1428.7665,-952.0853,201.0495);
	return 1;
}
Reply
#5

I apologize, I misread the title.I thought you couldn't see skins in the class selection.

And no.I don't think it's possible to see an actor in class selection.There may be a method but I am not sure.
Do more research on it.
Reply
#6

Only way to do it is to be in spectating mode or pre-stream them. The only way to pre-stream them would be to have the player spawn, teleport to them, then return to class selection.

So with a regular OnPlayerRequestClass method, no, it's not possible.
Reply
#7

TogglePlayerSpectating(playerid, true);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)