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... |