Search the Community
Showing results for tags 'idle'.
-
This function is for creating idle animations, on player's afk/idle. Aaand, u need to probably put this one in "onResourceStart" event, remember, to make it work. Here it comes: setTimer( function() for _, player in ipairs(getElementsByType("player")) do if(getPlayerIdleTime(player) > 10000) then local veh = getPedOccupiedVehicle(player) if veh then setPedAnimation(player, "car", "Sit_relaxed", -1, false, false, true, true, 250, false) else local anim = math.random(1, 5) if(anim == 1) then setPedAnimation(player, "playidles", "stretch", -1, false, false, false, false) elseif(anim == 2) then setPedAnimation(player, "playidles", "strleg", -1, false, false, false, false) elseif(anim == 2) then setPedAnimation(player, "playidles", "time", -1, false, false, false, false) elseif(anim == 2) then setPedAnimation(player, "playidles", "shldr", -1, false, false, false, false) elseif(anim == 2) then setPedAnimation(player, "playidles", "shift", -1, false, false, false, false) end end end end end 5000, 0) That's what I wanted to create, mentioning my latest post
-
Existe alguma string para utilizar como onMarkerHit porém eu queria como onPlayerWalk, onPlayerRun, eu estive procurando na wiki mais não encontrei nada..