bentix-cs / fivem-greenscreener Goto Github PK
View Code? Open in Web Editor NEWA fivem script that takes screenshots of every gta clothing, prop/object and vehicle
License: GNU General Public License v3.0
A fivem script that takes screenshots of every gta clothing, prop/object and vehicle
License: GNU General Public License v3.0
Add a feature to choose a specific color for all vehicles in screenshots.
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;
});
I suggest implementing a feature where vehicles are automatically cleaned before taking screenshots.
It works well for a man, but for a female, no clothes fit the character
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.