Awesome, thank you!
Iām trying to get /e sitchair to be a thing, because players need to sit sometimesā¦
This is the animation I am trying to use:
amb@prop_human_seat_chair_mp@male@generic@base
It triggers it fine, but my character kind of bends forward⦠he does not get into sitting position. What am I missing?
Try using ābody = 33ā instead of 49. That should make the animation use the peds full body.
how to change some animation from /e command to presskey? like [/e no] to press [G]
This works great Trundle! Thank you.
I added /e sitchair animation. If anyone is wondering how to do itā¦
This part goes into the config:
{name = 'sitchair', data = {type = 'sitchair', ad = "", anim = "", prop = 0, proptwo = 0, boneone = nil, bonetwo = nil, body = 33, x = 0.0, y = 0.0, z = 0.0, xa = 0.0, yb = 0.0, zc = 0.0}},
And youāll want to add this to the client.lua file (right under the end for āscenarioā)
elseif Config.Anims[i].data.type == 'sitchair' then
if vehiclecheck() then
if IsPedActiveInScenario(player) then
ClearPedTasks(player)
else
pos = GetEntityCoords(player)
head = GetEntityHeading(player)
TaskStartScenarioAtPosition(player, 'PROP_HUMAN_SEAT_CHAIR_MP_PLAYER', pos['x'], pos['y'], pos['z'] - 1, head, 0, 0, false)
end
end
Just use IsControlJustPressed(0,47) to trigger the animation, look at how Hands Up or Hover Holster works in the top of the resource.
Iāve updated the resource in github so you can play scenarios as well
{name = 'copidle', data = {type = 'scenario', ad = "WORLD_HUMAN_COP_IDLES", anim = "", prop = 0, proptwo = 0, boneone = nil, bonetwo = nil, body = 33, x = 0.0, y = 0.0, z = 0.0, xa = 0.0, yb = 0.0, zc = 0.0}},
{name = 'smoking', data = {type = 'scenario', ad = "WORLD_HUMAN_AA_SMOKE", anim = "", prop = 0, proptwo = 0, boneone = nil, bonetwo = nil, body = 33, x = 0.0, y = 0.0, z = 0.0, xa = 0.0, yb = 0.0, zc = 0.0}},
These are already in the new config, but you can type /e smoking and /e copidle to make those work, you can just replace ad = " " with the scenario you want.
/e stop doesnāt seem to be working for me. I have the latest version as well.
Hey mate ! Thanks for this awesome feature its really good but I am having a problem when I try to add walking animations.Like in esx_animations , attitudes. Can you give me an example to add something like below ;
{label = "Sombre", type = "attitude", data = {lib = "move_m@shadyped@a", anim = "move_m@shadyped@a"}},
Yes I like this, adding walkstyles and such will make this 10x better in my opinion.
@Irovolve Thanks for letting me know, Iāll fix this today.
@xvenga64 and @weavertron Iāll add walking styles for you guys today, thatās a good idea. Thanks!
Okay I updated it in github, you can use /e walk1 all the way up to /e walk44, the stop command will reset your walking to default and should now properly stop scenarios and all animations, plus some other updates.
Any idea how to disable shooting while hands up?
DisablePlayerFiring(
player --[[ Player ]],
toggle --[[ boolean ]]
)
Did you get this animation?
How do you install it to your Server?
@TrundleTheGreat thanks for this script, for the most part it works very well. Theres a couples things that Id like to point out. The walk style seems to not work. I believe the command work and it sets the walk style but it cancels immediately. There is a visual cue when you enter the command but when you walk its set to default. The second thing is the smoking emotes, theres both, the animation for smoking and then loading a prop in the mouth/hand. Is it possible to allow models to walk while doing the smoking animation?
Walk styles should definitely work some of them only show up if you are a female ped model, if you are using anything like a damage or injury resource then you may have something else setting you to your default walk style. There are the animations that I pulled from sources online and customized a little, and then there are scenarios. Scenarios are scripted events that you really canāt change. You can find the animations used in the scenario, and then manually spawn a prop into your hand and walk around with that, but no smoke will show up unless you create that effect yourself as well.
Nearly every animation in the game can be found online, it just takes a little trial and error to make them work.
Yeah we are using a damange script to set walk style when injured. Will check that out. Thanks for helping!
animations by /e , are not working for me
exemple: i type /e salute, and nothing happens
How do I disable xbox controller keybindings?.. the enterfier with lights and the scoreboard
There shouldnāt be anything in this script messing with it. I have it in my server and no controller issues at all. Might need to check another script