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: setpedanimation
1. setPedAnimation
Witam.
Dlaczego po od?o?eniu skrzyni, nie usuwa animacji? Za pomoc daj? :piwo: .
Kod:
[lua] addEventHandler("onClientMarkerHit", cel, function(el, md)
if not md or getElementType(el) ~= "player" then return end
if el ~= localPlayer then return end

if getPedOccupiedVehicle(el) then
outputChatBox("* Nie mo?esz tego od?o?y? b?d?c w poje?dzie !")
return
end


destroyElement(blip)
setElementFrozen(el, true)
outputChatBox("* K?adziesz skrzynie, odczekaj 5 sekund.")
setTimer(function()
setElementFrozen(el, false)
destroyElement(skrzynia)
destroyElement(cel)
setPedAnimation(el, false)
setElementData(el, "player:job", false)
if getElementData(el,"player:premium") then
outputChatBox("* Od?o?y?e?(a?) skrzyni?. Za od?o?enie skrzynii, otrzymujesz 20 PLN.")
setPedAnimation(el, false)
toggleControl(el, "sprint", true)
triggerServerEvent("givePlayerMoney", el, 20, 0)
setElementData(el,"player:srp", getElementData(el,"player:srp")+math.random(0,1))
else
outputChatBox("* Od?o?y?e?(a?) skrzyni?. Za od?o?enie skrzynii, otrzymujesz 11 PLN.")
setPedAnimation(el, false)
toggleControl(el, "sprint", true)
tri...
2. SetPedAnimation wyrzuca erory na serwerze
Witajcie, ot?? na serwerze lokalnym gdy mia?em dany gamemode wszystko dzia?a?o idealnie, jednak po wrzuceniu na serwer (mo?e co? ?le wrzuci?em?) wyrzuca errory po klikni?ciu TAB (gdy powinna si? pojawi? animacja podk?adania bomby jak na localu)

Error:
[code] WARNING: /weapon/backpack/server.lua:42: Bad argument @ 'setPedAnimation' [Expected number at argument 8, got boolean]
[/code]

Kod:

[code]
elementBackpack = {}
function playerBackPackToBack(dataName,oldValue)
if getElementType(source) == "player" or getElementType(source) == "ped" then
if (dataName == "MAX_Slots") then
local backpackSlots = getElementData(source,dataName)
if elementBackpack[source] and isElement(elementBackpack[source]) then
exports.bone_attach:detachElementFromBone(elementBackpack[source])
destroyElement(elementBackpack[source])
elementBackpack[source] = false
end
if (backpackSlots == 8) then return end
local x,y,z = getElementPosition(source)
if (backpackSlots == 12 or backpackSlots == 16) then
elementBackpack[source] = createObject(1866,x,y,z)
elseif (backpackSlots == 13 or backpackSlots == 17) then
elementBackpack[source] = createObject(1867,x,y,z)
elseif (backpackSlots == 20 or backpackSlots == 24) then
elementBackpack[source] = createObject(1868,x,y,z)
elseif (backpackSlots == 25 or backpackSlots == 29) then
elementBackpack[source] = createObject(1869,x,y,z)
elseif (backpackSlot...
3. setPedAnimation
Prosz? wpierw sprawdzi? czy nie zrobi?em liter?wki!

Nie wchodzi animka nwm czemu :/ .


function muza ()
local radio playSound3D('http://files.kusmierz.be/rmf/rmfmaxxx.pls'1438.05078125,1460.2021484375,10.8203125)
setSoundMaxDistanceradio10)
createColSphere(1438.05078125,1460.2021484375,10.820312510)
setPedAnimationsource"bikeh""BIKEh_Fwd")
end
addEventHandler 
"onClientResourceStart"getResourceRootElement(), muza )
4. setPedAnimation
Witam, co mam ?le??
function siedz()
setPedAnimation (source"sit""ParkSit_M_loop")
end
addCommandHandler
("siedz"siedz)
5. setPedAnimation
Witam, wie ktos moze jak zrobic zeby po wcisnieciu np. m wykonywala sie animka? Probowalem zrobic ale nie wychodzi ;/
6. setPedAnimation + walking
Siemka, ma kto? jaki? spos?b, na odpalenie animki (np. "GANGS", "prtial_gngtlkH" - gadanie) tak, aby m?c normalnie z ni? chodzi??
Piwka polec? ;p