Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: anim
1. Anim
Witam dlaczego nie dzia?a animacja?

local ped1 
createPed(241476.06, -1726.8413.55360)
setElementData(ped1,"ped_opis","Andrzej")
setPedAnimation(ped1"DANCING""dance_loop")
setElementFrozen(ped1,true)
2. anim
Witam mam problem poniewasz u?ywam tego kodu:
clinent
[code]
local cFunc = {}
local cSetting = {}

cSetting["shots"] = {}
cSetting["shot_calcs"] = {}
local last_shot = 1
-- FUNCTIONS --


cFunc["render_shots"] = function()
for index, tbl in pairs(cSetting["shots"]) do
dxDrawFuckedLine3D(tbl[1], tbl[2], tbl[3], tbl[4], tbl[5], tbl[6], tocolor(0, 255, 0))
end
end

cFunc["draw_shot"] = function(x1, y1, z1, x2, y2, z2)
table.insert(cSetting["shots"], last_shot, {x1, y1, z1, x2, y2, z2})
-- SHOT CALCULATING
local lastx, lasty, lastz = x1, y1, z1
local dis = getDistanceBetweenPoints3D(x1, y1, z1, x2, y2, z2)
cSetting["shot_calcs"][last_shot] = {}

for i = 1, dis, 0.5 do
-- cSetting["shot_calcs"][i] = nx, ny, nz
-- cSetting["shot_calcs"][last_shot][i] =
end
last_shot = last_shot+1
end

cFunc["shot_weapon"] = function(hitX, hitY, hitZ, x, y, z)
playSound3D("data/Fire.wav", x, y, z)
local s = playSound3D("data/Fire.wav", hitX, hitY, hitZ)
setSoundMaxDistance(s, 50)
for i = 1, 5, 1 do
fxAddPunchImpact(hitX, hitY, hitZ, 0, 0, 0)
fxAddSparks(hitX, hitY, hitZ, 0, 0, 0, 8, 1, 0, 0, 0, true, 3, 1)
end
cFunc["draw_shot"](x, y, z, hitX, hitY, hitZ)
fxAddPunchImpact(x, y, z, 0, 0, -3)
end

cFunc["wait_shot"] = function()
toggleControl("fire", false)
setTimer(function()
...