@stillhere I looked it up in Menyoo, it's possible there. The flag is Upperbody Only Secondary Task but neither are there natives nor flags to make it happen.
Posts made by Eyon
RE: Michael movement style change
You can easily change that by using a trainer like Menyoo for example. I don't know if you really need a script for that butr if you want t it would be quite easy to make. If you know the basics of prgramming you can easilyjust put the commeand to get the name of the player character at the initialization o the game o you can as well do it OnTick if you like switching between characters. Then all you gotta do is simply do a commad to change the movement like this: Function.Call(Hash.SET_PED_MOVEMENT_CLIPSET, Game.Player.Character, AnimationName, 1.0f); The animation name would be ''move_m@generic''. If you don#t really knwo how to do this you can later just simply message me.
Function.Call(Hash.SET_PLAYER_SPRINT, Game.Player.Character, true); doesn't work. I have some code that sets it to false under one condition, then, when that condition isn't true anymore and another condition is met, it's supposed to be turned to true. I can't even sprint after reloading the script! I put that function in the initialization to set it to true as well and it won't work whatever I do...
Also, how do you make a ped wander off while doing the amb@code_human_wander_eating_donut@male@idle_a animation and actually having a hotdog in his hand? I tried it by making the ped wander off then spawning the hotdog prop then attaching it to his hand bone and then making the ped play the animation. Result: Ped turned into a hotdog, literally. The ped dissapeared and instead I was left with a floating hotdog where the ped's torso was... I tried the code from jedijosh, same there...
RE: Need help with some code
texture = AppDomain.CurrentDomain.BaseDirectory + "\HotDog\nuts.png";
Point posImage = new Point(618, 330);
Size sizeImage = new Size(1000, 1000);
UI.DrawTexture(texture, 100, 10, 100, posImage, sizeImage);
tried this, won't work.
Image bun = Image.FromFile(AppDomain.CurrentDomain.BaseDirectory + "\HotDog\nuts.png");
UI.DrawTexture(AppDomain.CurrentDomain.BaseDirectory + "\HotDog\nuts.png", 100, 10, 100, posImage, sizeImage);
Function.Call(Hash.DRAW_SPRITE, AppDomain.CurrentDomain.BaseDirectory + "\HotDog\nuts.png", 0.2, 0.1, 0.1, 0.09, 0.0, 255, 255, 255, 255);
Am I giving the wrong directory? My .png is located inside scripts\HotDog\nuts.png
Is the image perhaps too small?
Need help with some code
I'm trying to draw an external image and whenever I try to use it in a function I get this error: "Cannot convert system.drawing.image to string"
First I loaded the image:
private Image bun;
Image bun = Image.FromFile("scripts\HotDog\bun.png");
I've been trying to fix it for 3 hours straight, this is the last thing I tried:
byte imageToByteArray(System.Drawing.Image img)
MemoryStream memoryStream = new MemoryStream();
Function.Call(Hash.DRAW_SPRITE, Convert.ToBase64String(imageToByteArray(bun)), 0.2, 0.1, 0.1, 0.09, 0.0, 255, 255, 255, 255);