Jump to content

WARHAN

Members
  • Posts

    6
  • Joined

  • Last visited

Details

  • Gang
    left

WARHAN's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Подскажет ли кто аналог функции Wait() или Sleep() в луа?
  2. Thank you all. Close PS 50p thanks for the speedometer. Using this code, I wrote a nice progress bar for my gym
  3. I found a solution. setPedAnimation (ped thePed [, string block = nil, string anim = nil, int time =- 1, bool loop = true, bool updatePosition = true, bool interruptable = true]) updatePosition = true Change to false
  4. Player abruptly changed his position during the animation
  5. The problem with animation is not solved. When I ask animation setPedAnimation (player, "GYMNASIUM", "gym_tread_jog") then the player through a period of time then "throws" in front. How to solve the problem? Freese does not solve the problem.
  6. I want make gym. I started doing the tread. But there are two problems that I can not explain. This snippet of code on the server: function training (player) setPedFrozen (player, true) toggleAllControls (player, false, true, false) setElementPosition (player, 773.48046, -2.5117, 1000.84) setPedAnimation (player, "GYMNASIUM", "gym_tread_jog") setPedRotation (player, 180) triggerClientEvent ("onTread", getRootElement ()) end addCommandHandler ("training", training) Clients: function createProgressBar () progressBar = guiCreateProgressBar (0.8, 0.8, 0.15, 0.05, true, nil) guiProgressBarSetProgress (progressBar, 50) bindKey (player, "space", "down", addGymProgressBar) end addEvent ("onTread", true) addEventHandler ("onTread", getRootElement (), createProgressBar) The first problem that does not create the progress bar The second is that the use of frozen animation slips and vice versa. I hope you will help a beginner:)
×
×
  • Create New...