-
Posts
329 -
Joined
Details
-
Gang
Civilians
-
Location
Antartida
-
Occupation
Frozen
-
Interests
None
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
DanHR's Achievements
Prankster (22/54)
0
Reputation
-
I confirm the deletion on mail but nothing happens
-
I dont know what can you manage, but I think this is what I meant, you play with that
-
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?
-
DanHR started following [HELP] FileWrite not writing after first line
-
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
-
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 )
-
DanHR changed their profile photo
-
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?