[Request] Admin Camera to watch over people?

So running a server is difficult and can sometimes be a pain in the ass when you cant see things happening.

If some one runs you over or FailRP and you dont catch there ID it can cause a headache.

So is there a way someone here could maybe try create a script that lets you come away from the person and be a floating camera?

Sorry if this doesnt make sense

If I am not mistaken, you can go in your house on GTA 5 online and see other players through the TV sort of? maybe something like this

Lol almost every trainer has this option and its labeled as spectate, if scripthook is disabled on your server then make a blacklist on a troll menu you dont want people using.

Can i not do the opposite and do a white list for use of ScriptHook?

Reverse the function from this [Release]Drag command and there you got yourself attached to the player you want to, now make your ped invisible and thats it, form here hide ur name etc…

1 Like

You might be able to take this code from lambda menu to help you make something…

{
		case 0: //spectate player
		{
			if (!NETWORK::NETWORK_IS_PLAYER_CONNECTED(targetId))
				set_status_text("Player has ~r~<C>disconnected</C>.");

			else if (featureSpectate)
			{
				if (!CAM::IS_SCREEN_FADED_OUT()) {
					if (!CAM::IS_SCREEN_FADING_OUT()) {
						CAM::DO_SCREEN_FADE_OUT(1000);
						while (!CAM::IS_SCREEN_FADED_OUT()) WAIT(0);
						Vector3 targetpos = ENTITY::GET_ENTITY_COORDS(target.ped, 0);
						STREAMING::REQUEST_COLLISION_AT_COORD(targetpos.x, targetpos.y, targetpos.z);
						NETWORK::NETWORK_SET_IN_SPECTATOR_MODE(1, target.ped);
						if (CAM::IS_SCREEN_FADED_OUT()) {
							CAM::DO_SCREEN_FADE_IN(1000);
						}
					}
				}
				set_status_text("Spectating: ~b~<C>" + target.name + "</C>.");
			}
			else
			{
				if (!CAM::IS_SCREEN_FADED_OUT()) {
					if (!CAM::IS_SCREEN_FADING_OUT()) {
						CAM::DO_SCREEN_FADE_OUT(1000);
						while (!CAM::IS_SCREEN_FADED_OUT()) WAIT(0);
						Vector3 targetposME = ENTITY::GET_ENTITY_COORDS(playerPed, 0);
						STREAMING::REQUEST_COLLISION_AT_COORD(targetposME.x, targetposME.y, targetposME.z);
						NETWORK::NETWORK_SET_IN_SPECTATOR_MODE(0, target.ped);
						if (CAM::IS_SCREEN_FADED_OUT()) {
							CAM::DO_SCREEN_FADE_IN(1000);
						}
					}
				}
			}
		}
		break;
2 Likes