
DeletedAccount1111
Members-
Posts
329 -
Joined
Everything posted by DeletedAccount1111
-
Account deletion bugged?
DeletedAccount1111 posted a topic in Site/Forum/Discord/Mantis/Wiki related
I confirm the deletion on mail but nothing happens -
[ Help ] How Can I Create Custom Charcter System
DeletedAccount1111 replied to AlirezAm's topic in Scripting
I dont know what can you manage, but I think this is what I meant, you play with that -
[ Help ] How Can I Create Custom Charcter System
DeletedAccount1111 replied to AlirezAm's topic in Scripting
You could use shaders to add image layers, I remember doing this back then with clothes textures so I could have NBA jerseys on CJ, so it should be possible what you mention -
I haven't tested it as I dont have a model available right now, but would it be possible to load a ped or a car with engineRequestModel, get the ID with getElementID, then replace it to whatever with engineSetModelTXDID? For example, let's say we wanted to add Tommy Vercetti to the game, and assign him ID 313 (I think that's the first free ID), would it be possible to create a tommy element, get its id, then change it to 313? (and ofc destroy the element afterwards) If this is possible, how cars and peds created this way can have sounds? Can I somehow load ped voices from vice city so we can have the "official teta inspector" line in game?
-
I don't even know how to start with this script, but basically, how do I play a random ped voice sound given the voicetype and voicename? My idea is a function that you pass a voicetype and voicename, and plays a random ped sound, if there's a sound list to filter, random damage sounds could be filtered, so only actual voices can be played
-
Object Preview - Showing Player Skin and vehicle
DeletedAccount1111 replied to DeletedAccount1111's topic in Scripting
The GUI functions are client sided, so I cannot manage to start this -
I was trying to get a table of every skin and their correspondent voice (because I couldn't find them), but while I was trying to print it, FileWrite only writes the first line. Technically, the idea is that each second the game changes the player skin (as I couldn't manage to create a ped and retrieve a voice), and gets the skin id, and voice ids, and prints it, giving a nice table with all of them: addCommandHandler ( "gv", function () local localFile = fileCreate("test.csv") fileWrite(localFile, "PEDMODEL, VOICETYPE, VOICENAME;") local i = 0 setTimer(function () setElementModel(localPlayer, i) local voiceType, voiceName = getPedVoice(localPlayer) fileWrite(localFile, tostring(i)..", "..tostring(voiceType)..", "..tostring(voiceName)..";") i = i + 1 end, 1000, 10) fileClose(localFile) end )
-
Hi people, I was trying to understand Object Preview resource, but I don't get how to listen to skin changes so it updates the preview Also, given the same, I need to know when a player is in a car, and render that car. For the moment I have this, it renders the player skin: local scx, scy = guiGetScreenSize () local myObject,myElement, guiWindow = nil, nil, nil local myRotation = {180,180,0} function showPlayerSkin() local x1, y1, z1 = getCameraMatrix() --myElement = createVehicle(429, x1, y1, z1) myElement = createPed(getElementModel(getLocalPlayer()),x1,y1,z1) --myElement = createObject(356,0,0,0) myObject = exports.object_preview:createObjectPreview(myElement,0,0,0,1,1,1,1,true,true,false) guiWindow = guiCreateWindow((scx/2)-100,(scy/2) - 100,200,200,"Test area",false,false) guiSetAlpha(guiWindow, 0.05) local projPosX, projPosY = guiGetPosition(guiWindow,true) local projSizeX, projSizeY = guiGetSize(guiWindow, true) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), showPlayerSkin()) addEventHandler("onClientPreRender", root, function() if not myElement or not myObject then return end local projPosX, projPosY = guiGetPosition(guiWindow,true) local projSizeX, projSizeY = guiGetSize(guiWindow, true) exports.object_preview:setRotation(myObject,myRotation[1], myRotation[2], myRotation[3]) exports.object_preview:setProjection(myObject,projPosX, projPosY, projSizeX, projSizeY, true, true) end, true, "high" ) addEventHandler("onClientResourceStop", getResourceRootElement( getThisResource()), function() exports.object_preview:destroyObjectPreview(myObject) end ) Also it would be nice to know how to remove these render shadows, and to have them not affected by world light
-
How can I create a button that has a text and a image?
-
Just edit the file in the resource lol
-
Do you have any image examples on this? Doesn't matter if its just writting poop on a house or something
-
Then it wont work as expected, let's say I want to print the username on the back of a shirt, I cant do that with photoshop because i have to create all the possible variables
-
Move to another country I guess
-
Is it possible to print text on textures so we can have, for example, numbers on shirts?
-
I have a list of comboboxes for customization, but I wanna know if I can get one combobox to overlap other, in order to select the items. Has anyone managed this?
-
Hello, I'm trying to edit the freeroam resource in order to create a new one, but I'm trying to create a tab panel with tabs and I am not getting it right or something { 'tbp', id='clothestab', --x = 0, --y = 0, width = 350, height = 100, controls = { {'tab', text='Skin', controls = { {'br'}, }, }, {'tab', text='Skin2', controls = { {'br'}, }, }, {'tab', text='Skin3', controls = { {'br'}, }, }, }, },
-
AddPedClothes with custom texture?
DeletedAccount1111 replied to DeletedAccount1111's topic in Scripting
With this I can play with 1.png and my friend with 2.png? -
AddPedClothes with custom texture?
DeletedAccount1111 replied to DeletedAccount1111's topic in Scripting
This will only work for replacement right? I wanna have more textures than the default ones in order to add more clothes -
Can I set the texture part to a custom one using AddPedClothes? If so... how? What format does the texture need to be?
-
Help: Randomize Vehicle Plate Text when Respawn
DeletedAccount1111 replied to Hadif's topic in Scripting
Add - so it gives random gaps too -
Jack will give the user Jack the skin number 1
-
Is there any resource that lets you do that?
-
Can we change the plate font now?
DeletedAccount1111 replied to DeletedAccount1111's topic in Resources
Not this, I mean the color the numbers are and so on I think it couldnt be done with shaders, still dont know why -
Or its still impossible?
-
May I bump? This looked interesting and dont know how the work is going