Giter Club home page Giter Club logo

fivem-greenscreener's Introduction

Hi there ๐Ÿ‘‹

fivem-greenscreener's People

Contributors

bentix-cs avatar hakanesnn avatar tgiann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fivem-greenscreener's Issues

Maybe bug with greenscreen

Hi, i used screenshotobject command and it didnt greenscreen it and cut the picture from greenscreen, also my customscreenshot command didnt work.

Btw i little bit modified the screenshotobject command to support model names

Code:

RegisterCommand('screenshotobject', async (source, args) => {
	const modelHash = isNaN(Number(args[0])) ? GetHashKey(args[0]) : Number(args[0]);
	const ped = GetPlayerPed(-1);

	if (!stopWeatherResource()) return;

	DisableIdleCamera(true);

	await Delay(100);

	if (!IsModelValid(modelHash)) return;

	if (!HasModelLoaded(modelHash)) {
		RequestModel(modelHash);
		while (!HasModelLoaded(modelHash)) {
			await Delay(100);
		}
	}

	SetEntityCoords(ped, config.greenScreenHiddenSpot.x, config.greenScreenHiddenSpot.y, config.greenScreenHiddenSpot.z, false, false, false);

	SetPlayerControl(playerId, false);

	const object = CreateObjectNoOffset(modelHash, config.greenScreenPosition.x, config.greenScreenPosition.y, config.greenScreenPosition.z, false, true, true);

	SetEntityRotation(object, Number(args[1]) || config.greenScreenRotation.x, Number(args[2]) || config.greenScreenRotation.y, Number(args[3]) || config.greenScreenRotation.z, 0, false);

	FreezeEntityPosition(object, true);

	await Delay(50);

	await takeScreenshotForObject(object, modelHash);

	DeleteEntity(object);
	SetPlayerControl(playerId, true);
	SetModelAsNoLongerNeeded(modelHash);
	startWeatherResource();
	DestroyAllCams(true);
	DestroyCam(cam, true);
	RenderScriptCams(false, false, 0, true, false, 0);
	cam = null;
});

[BUG] Yarn issue

When i try to start this resource, this is the error i get, unsure why it is not working could use some help.
bugscreen

Greenscreen not visible

Hi! Great script you've made, however there is small issue with greenscreen not loading. Any tips?

I do not see the greenscreen on map nor during the screenshot commands that start the screenshot processing.

male_1_6

female tops bug

It works well for a man, but for a female, no clothes fit the character

[Suggestion] Add support for weapons

I tried using this to get pictures of my addon weapons, but doing /screenshotobject 453432689 (weapon_pistol) didn't do anything so I'm guessing that weapons are under a different category than objects and props.

Capturing alternate textures

It doesn't seem there is a way to capture alternate textures, for example if I wanted to do /customscreenshot 11 17 clothing male it would only get the texture at ID 0, where I wanted the texture at ID 1 for that drawable for example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.