Witam, robi? frakcj? Venturas News lecz mam taki pewien problem, gdy wpisz? /vnews <text> wywala mi db3:
[img]http://www.wrzucajtu.pl/wrz/73cba6397f542bb2add98fad09af2376162.158.203.193mta-screen_2016-07-11_18-17-51.png[/img]
Kod:
[lua]
C-SIDE:
local screenW, screenH = guiGetScreenSize()
addEvent("oglos",true)
addEventHandler("oglos",root,
function (reason)
addEventHandler("onClientRender",root,info)
end
)
function info (reason)
dxDrawText(""..reason.."", screenW * 0.3536, screenH * 0.0111, screenW * 0.6391, screenH * 0.0648, tocolor(255, 254, 254, 254), 1.20, "default-bold", "center", "top", false, false, true, false, false)
end
function infor ()
removeEventHandler("onClientRender",root,info)
end
setTimer(infor,15000,1)
[/lua]
[lua]
S-SIDE:
local pojazdy = {
{983.91,1720.12,8.71,360,0,90},
{983.91,1725.12,8.71,360,0,90},
{983.91,1730.12,8.71,360,0,90},
{983.91,1735.12,8.71,360,0,90},
{983.91,1740.12,8.71,360,0,90},
}
for i,v in ipairs(pojazdy) do
local v = createVehicle(582,v[1],v[2],v[3],v[4],v[5],v[6])
setElementData(v,"pojazd_opis","Venturas News")
setElementData(v,"pojazd_paliwo",100)
setVehicleFrozen(v,true)
end
addEventHandler("onVehicleStartEnter",resourceRoot,
function (player)
local acc = getAccountName(getPlayerAccount(player))
if not isObjectInACLGroup("user.&q... |