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: pracą
1. Wstawienie obrazka do skryptu z pracą
Cze??,
Chcia?em urozmaici? skrypt na prace i ulepszy? go z wygl?du, jednak?e nie mam poj?cia jak to zrobi?(pr?cz funkcji dxdrawimage), gdzie wklei? linijki oraz co jeszcze potrzeba aby to dzia?a?o.

Mam przygotowan? ju? linijke:
[lua]dxDrawImage(0*px, 0*py, 1920*px, 1080*py, "StreetView.png", 0, 0, 0, tocolor(255, 255, 255, 255))[/lua]

Lecz nie mam poj?cia co dalej robi?, chc? zrobi? tak aby po wej?ciu w marker pracy, zamiast automatycznego poprzez skrypt dawania nam odrazu auta sv, wy?wietla? nam si? dany obrazek, i po ustawieniu isMouseIn i klikni?ciu w np Zacznij Prac?, dopiero wtedy nam si? da?o auto i rozpoczynamy prace.

Kod pracy:
[lua]
local b=createElement("text")
setElementData(b,"name","PRACA: Kierowca Street-ViewnZAROBEK:n100 PLNnPremium Zarobek 400 PLN")
setElementPosition(b,1396.93, -1569.73, 14.27)


local zone = createColSphere(-1986.58, 955.03, 45.54,3 )
createBlip(1398.00, -1562.42, 29.22, 46,2,0,0,0,0,0,275)
local m1 = createMarker(1396.95, -1569.73, 13.27, "cylinder", 1.5, 35, 142, 35)
vehs = {}
local code = "StreetView"
veh_obj = {}

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("onMar...
2. Bug z pracą
Witam ! Mam problem ot?? mam prace StreetView kt?ra nie dodaje saldo na koncie to wyskakuje w debugscript : http://imgur.com/a/dQ59h

Kod:

server:

[code]local b=createElement("text")
setElementData(b,"name","PRACA: Kierowca StreetViewnZAROBEK:nGRACZ 3500-8000PLN | PREMIUM 8000-13000 PLNnOPIS: Identyfikowanie mapy")
setElementPosition(b,-1990.65,957.23,45.45)

local zone = createColCuboid(-1989.4969482422, 949.93933105469, 44.349185943604, 5.9, 8.3, 4.5)

createBlip(-1990.14,951.21,45.45, 46,2,0,0,0,0,0,275)

local m1 = createMarker(-1990.65,957.23,45.45-1, "cylinder", 1.5, 35, 142, 35)
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 przygotowania.", el)
return
end

if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end
if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox("* Parking zaj?ty czekaj a? wyjedzie!",el) return end

local x,y,z = getElementPosition...
3. Problem z pracą Taxi ( By Shuffle ) . Nie pokazuje Taxówek.
Witam, mam problem z prac? by Shuffle (taxi)

Chodzi o to ze nie respi mi tych tax?wek .

Kod:

[lua]








local allow_vehs={
[420]=true,
}

local vehs={
{1779.7333984375, -1931.029296875, 13.521888732911},
{1784.7333984375, -1931.029296875, 13.521001266479},
{1791.7333984375, -1931.029296875, 13.521606445312},
{1797.7333984375, -1931.029296875, 13.521175384521},
{1803.7333984375, -1931.029296875, 13.521175384521},
}

taxi={}

for k,v in ipairs(vehs)do
taxi[k]=createVehicle(420,v[1],v[2],v[3])
setElementRotation ( taxi[k], 0, 0, 89.538452148438 )
setElementData(taxi[k],"vehicle:taxi",true)
end

addEventHandler("onPlayerVehicleEnter",root,function(veh,seat)
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Taxi")) then
if seat==0 then
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
outputChatBox("*Zacz??es prac?. Dostaniesz informacj? o po?o?eniu klienta po wezwaniu us?ugi.",source,255,255,255)
setElementData(source,"player:taxi",true)
end
end
end
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
setElementData(source,"taxi",false)
end
end
end
end)
if allow_vehs[getElementModel...