Wywala b??d w tych linijkach? moze kto? pomo?e (FiveM)
for k,v in ipairs(ESX.PlayerData.loadout) do ---- (es extended -- plik main po stronie klienta
i w postaciach r?wniez w main po stronie klienta 287 linijka TriggerEvent('esx:restoreLoadout')
Posiadam kod podmieniajacy markery, a dokladniej cylindry, aczkolwiek problem tkwi w tym, i? gdy postawi? marker na np. dim 12, czy te? dam interior, to ten marker widoczny jest te? na dim 0.
[lua]
MARKER_DRAW_DISTANCE = 3000
MARKER_FADE_DISTANCE = MARKER_DRAW_DISTANCE-10
MARKER_REFRESH_TIMEOUT = 500 -- czas w ms co ile wyszukuje markery w poblizu
tick_rotation=getTickCount()
local markers = {}
local textures = {}
local iconSize = Vector2(0.8, 0.8)
function findRotation(from_x, from_y, to_x, to_y)
local result = -math.deg(math.atan2(to_x - from_x, to_y - from_y))
return result < 0 and result + 360 or result
end
local thisTick = getTickCount()
local font = exports['lrpg-markery']:dxGetFont('light') or 'default-bold'
function renderCustomMarkers()
local cx, cy, cz = getCameraMatrix()
local rx, ry, rz = getElementRotation(getCamera())
local posPlayerX, posPlayerY, posPlayerZ=getElementPosition(localPlayer)
local pX,pY,pZ=getElementRotation(localPlayer)
--local tick = math.abs(getTickCount() % 2500 - 2500/2) / 2500/2
local tick = interpolateBetween(0,0,0,0.3,0,0, (getTickCount()-thisTick)/2500, "SineCurve")
for i, marker in ipairs(markers) do
if isElement(marker) then
local x, y, z = getElementPosition(marker)
local radius = getMarkerSize(marker) or 3
local color = {getMarkerColor(marker)} or {255, 255, 255, 255}
local icon = getElementData(marker, "icon") or "marker"...
function isPedAiming ( thePedToCheck )
if isElement(thePedToCheck) then
if getElementType(thePedToCheck) == "player" or getElementType(thePedToCheck) == "ped" then
if getPedTask(thePedToCheck, "secondary", 0) == "TASK_SIMPLE_USE_GUN" then
return true
end
end
end
return false
end
function isRendering()
if option.actived == true then
if not element then return end
local vx,vy,vz=getElementVelocity(element)
mathSpeed=(vx^2+vy^2+vz^2)^0.5*1.8*100
if mathSpeed < 0 then return end
if value == "vehicle" then
local vid=getElementData(element,"vehicle:id") or "brak"
local driver=getElementData(element,"vehicle:driver") or "brak"
dxDrawText(string.format("%.02f", mathSpeed).." km/h", (809/1024)*w, (451/768)*h, (1000/1024)*w, (482/768)*h, tocolor(255, 255, 255, 255), (2.00/1280)*w, (2.00/720)*h, &q...
[code]if categoryB[getElementModel(source)] then
local resultb=exports["yc-mysql"]:pobierzRekord("SELECT * FROM ogrpg_punish WHERE type=? AND active=1 AND serial=? AND time>NOW()", "B", getPlayerSerial(plr))
if #resultb > 0 then
cancelEvent()
outputChatBox("Posiadasz zawieszone prawo jazdy do "..result[1].time..", za: "..result[1].reason, plr, 255, 0, 0)
else
exports["yc-mysql"]:ustawRekord("DELETE FROM ogrpg_punish WHERE typ...
Witam mam tutaj kod na maxymaln? ilo?? graczy w dru?ynie "Ballas" lecz nie wiem co jest ?le
function LogujBallas (hitElement, dimension)
if countPlayersInTeam (Ballas) < 10 then
setPlayerTeam (hitElement, Ballas )
outputChatBox('Dolaczyles do druzyny Ballas.', hitElement, 184, 3, 255 )
else
outputChatBox('W tej chwili nie ma wolnych miejsc w tej druzynie !', hitElement, 184, 3, 255 )
end
end