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: dostaję
1. Po wejściu w marker nie dostaje przedmiotu
tak jak w tytule

Client:
[lua]function sadzenie ()
if exports.global:hasItem( localPlayer, 38) then
outputChatBox ( "#FF0000[Sadzonka]#FFFFFF Posadzi?e? Marihuan?, poczekaj a? uro?nie!", 255, 255, 255, true )
-- triggerServerEvent("sadzonkaa1", resourceRoot, localPlayer)
triggerServerEvent("zabracitem2", resourceRoot, localPlayer)
triggerServerEvent('marihuana:posadz', getResourceRootElement())
else
outputChatBox ( "#FF0000[Sadzonka]#FFFFFF Nie masz sadzonki!", 255, 255, 255, true )
end
end
addCommandHandler ( "posadzm", sadzenie )


function dotknij ()
outputChatBox ( "#FF0000[Sadzonka]#FFFFFF Zebra?e? top Marihuany!", 255, 255, 255, true )
triggerServerEvent("dajitem", resourceRoot, localPlayer)
destroyElement ( sadzonka2)
destroyElement ( sadzonkazbierz)
end
addEvent('marihuana:dotknij', true)
addEventHandler('marihuana:dotknij', getResourceRootElement(), function()
dotknij()
end)[/lua]

Server

[lua]function posadz(player)
local int = getElementInterior(player)
local dim = getElementDimension ( player )

if not player then return fasle end
local x,y,z = getElementPosition(player)
sadzonka = createObject ( 743, x+1, y, z-0.5 )
setElementInterior ( sadzonka, int )
setElementDimension ( sadzonka, dim )
setTimer ( function()
local x2,y2,z2 = getElement...
2. nie dostaje sie kasy
wgra?em prace magazyniera i si? nie dostaje pieni?dzy ale rp si? dostaje wie mo?e kto? jaka jest przyczyna jaki? plik czy licznika lua jest nie dopisana pomocy
3. [DM] [DM] Podczas zarabiania na pracach nie dostaję kasy.
Tak jak w tytule, nie dostaj? kasy za prac?.

w konsoli mam b??d: [2017-06-08 14] ERROR: Client (#4060e0#dbb234.DaVe) triggered serverside event givePlayerMoney, but event is not added serverside


Prosz? o pomoc :(
4. Podczas zarabiania na pracach dorywczych nie dostaję kasy.
Tak jak w tytule, nie dostaj? kasy za prac?.

w konsoli mam b??d: [2017-06-08 14:44] ERROR: Client (#4060e0#dbb234.DaVe) triggered serverside event givePlayerMoney, but event is not added serverside


Prosz? o pomoc :(
5. Nie dostaje kasy
Mam pasa?era i jak wjezdzam to nie dostaje Kasy
[lua]


local jobMarker
local jobVehicle
local jobOdbieranie = createMarker(1922.41, 2314.70, 10.22, "cylinder", 6, 0, 0, 255)


local positionTrash = {
{1641.78, 1821.85, 10.35},
{1728.25, 1613.82, 9.36},
}

function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end
if jobBlip and isElement(jobBlip) then
destroyElement(jobBlip)
jobBlip = nil
end
end

function hideNextPoint(el, md)
if el ~= localPlayer or not md then return end
if not getPedOccupiedVehicle(el) then return end
local pojazd = getPedOccupiedVehicle(el)
if not getElementData(pojazd, "pojazd_smieci") then setElementData(pojazd, "pojazd_smieci", 0) end

if getElementData(pojazd, "pojazd_smieci") > 1 then
outputChatBox("* Posiadasz 1 Pasa?era! Jedz do Celu.")
return
end

local smieci = getElementData(pojazd, "pojazd_smieci") + math.random(25, 35)

finishJob()
showNextPoint()
playSoundFrontEnd(12)
setElementData(pojazd, "pojazd_smieci", smieci)
setElementData(pojazd, "vehicle:desc", "Pasa?er: 1")
end

function showNextPoint()
jobRandom = math.random(1, #positionTrash)

jobMarker = createMarker(positionTrash[jobRandom][1], positionTrash[jobRandom]...
6. Nie dostaję hajsu...
:piwo: Witam, mam problem ze skryptem. Mianowicie chodzi o to, ?e nie dostaj? kasy za wjazd do markera.
W pracy chodzi o to, ?e je?d?? autobusem do marker?w i od ka?dego markera powinienem dostawa? hajs. Jednak tak si? nie dzieje. Pomo?e kto??
Oto kody:

-server
[lua]
local m1 = createMarker( 2122.25,2517.02,9.52, "cylinder", 2.0, 255, 0, 0)
vehs = {}


function removePreviousVehicles(plr)
for i,v in ipairs(getElementsByType("vehicle", resourceRoot)) do
local sby = getElementData(v, "zrespilGracz")
if sby and sby == plr and getPedOccupiedVehicle(plr) ~= v then
destroyElement(v)
end
end
end

addEventHandler("onMarkerHit", m1, function(el, md)
if getElementData(el, "zrespilGracz") then
outputChatBox("Praca w trakcie poprawek.", el)
return
end

if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end

local x,y,z = getElementPosition(el)
local Coach = createVehicle(437, 2143.47,2489.64,10.97,0.0,360.0,91.2)

setElementData(Coach, "zrespilGracz", el)
setElementData(Coach, "pojazd_paliwo", 50)
setElementData(Coach, "pojazd_przebieg", 1000)
setElementData(Coach, "pojazd_opis", "Las Venturas - Las Venturas")

warpPedIntoVehicle(el,Coach)
removePreviousVehicles(el)
triggerClie...
7. Plik bez którego gracz dostaje crash'a
Witam. Wiem, ?e takie co? jest mo?liwe, tylko jak to zrobi?, a chodzi mi o takie co?.
Chcia?bym zrobi? takie co?, ?e je?eli jaki? gracz by wszed? do mojego interioru to dosta? by crash'a, a osoby maj?ce ten plik nie dostawaliby crash'a. Nie wiem jak to nazwa?, wi?c opisa?em. Chyba wiecie o co mi mniej wi?cej chodzi.

Mo?e kto? jest w stanie mi pom?c? Pozdrawiam. ;)
8. [INNE] Jak zrobić, że jak gracz zabije drugiego, dostaje jeg
Witam. Za???my, ?e mamy gracza A i gracza B no, i jak zrobi?, ?e jak gracz B zabije gracza A to gracz B dostaje ca?? kase gracza A? Za pomoc :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: .