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: widziany
1. Licznik widziany tylko przez jedną osobe
Witam, jak zrobi? aby licznik by? widziany przez kierowc? i pasa?er?w pojazdu?
Aktualnie jest widziany tylko przez kierowc?.
Pozdrawiam!

c.lua

[lua]local x, y = guiGetScreenSize()

show_speed = false

local smothedRotation = 0

local indikator_1 = "images/1.png"
local indikator_2 = "images/2.png"
local indikator_3 = "images/3.png"
local indikator_4 = "images/4.png"
local indikator_5 = "images/5.png"
local indikator_6 = "images/6.png"
local indikator_7 = "images/7.png"
local indikator_8 = "images/8.png"

alpha = 255

function fons ()
if show_speed == false then

local veh = getPedOccupiedVehicle(getLocalPlayer())
if not veh or getVehicleOccupant ( veh ) ~= localPlayer then return true end
if not driveDistance then lastTick = getTickCount() driveDistance = getElementData ( veh, "driveDistance" ) or 0 end

local vehs = getElementSpeed(getPedOccupiedVehicle(getLocalPlayer()), "kmh")
local fuel = getElementData(getPedOccupiedVehicle ( localPlayer ), "vehicle:fuel" ) or 0

local rot = math.floor(((270/9800)* getVehicleRPM(getPedOccupiedVehicle(getLocalPlayer()))) + 0.5)

local actualspeed = getElementSpeed (veh, 1)
local kmh = math.floor(actualspeed)

local num = getElementData(veh,"vehicle:mileage") or 0
local mileage = ""..math.floor(num)
repeat mileage = "0"..mileage until #...