-
Posts
413 -
Joined
-
Last visited
Details
-
Gang
|Tsw|
-
Location
Santiago, Chile
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
SnoopCat's Achievements
Thug (25/54)
0
Reputation
-
yeah thx castillo
-
how its called that resource that is used to recolect things from the trash? like a dumper?
-
hey guys i know this is easy to do but idk is nto working , can someone help me to fix? local snoopcatfont = dxCreateFont("font.ttf", 18) function greetingHandler () end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler ) local gMe1 = getLocalPlayer() local h,w = guiGetScreenSize() root = getRootElement() marker = createMarker( 173.2109375, -1571.3525390625, 12.695039749146, "checkpoint", 1.5, 0, 255, 255, 0) function MarkerHit(hitPlayer) if hitPlayer~=gMe1 then return end local vehicle = getPedOccupiedVehicle(hitPlayer) if source==marker then addEventHandler("onClientRender", root, textDrawer) setTimer(deltext, 8000, 1) end end addEventHandler("onClientMarkerHit", resourceRoot, MarkerHit) function textDrawer() dxDrawText("Cargando...", h/2.6, w/2, h, w, tocolor(0, 0, 0, 255), 4.05, snoopcatfont) dxDrawText("Cargando...", h/2.6, w/2, h, w, tocolor(255, 255, 255, 255), 4, snoopcatfont) end function deltext() removeEventHandler("onClientRender", root, textDrawer) end
-
Download Link: http://www.mediafire.com/?cifldxxzvz9eq8o
-
its only showing country name :C
-
i deleted those lines and race stoped working
-
hey guys i was trying to make the thavelling image animation and i cant get it , my image disapeared. can someone help me? this is what i modified on the race_client.lua at travelling section TravelScreen = {} TravelScreen.startTime = 0 function TravelScreen.init() local screenWidth, screenHeight = guiGetScreenSize() local seconds = getTickCount() / 1600 local angle = math.sin(seconds) * 360 g_GUI['travelImage'] = guiCreateStaticImage(screenWidth/2-256, screenHeight/2-20, 512, 256, 'img/travelling.png', angle, 0, 0, false, nil) g_dxGUI['travelText1'] = dxText:create('Travelling to:', screenWidth/2, screenHeight/2-130, false, 'bankgothic', 0.60, 'center' ) g_dxGUI['travelText2'] = dxText:create('', screenWidth/2, screenHeight/2-100, false, 'bankgothic', 0.70, 'center' ) g_dxGUI['travelText3'] = dxText:create('', screenWidth/2, screenHeight/2-40, false, 'bankgothic', 0.70, 'center' ) g_dxGUI['travelText4'] = dxText:create('', screenWidth/2, screenHeight/2-70, false, 'bankgothic', 0.70, 'center' ) g_dxGUI['travelText1']:color(255, 70, 0) g_dxGUI['travelText4']:color(255, 70, 0) hideGUIComponents('travelImage', 'travelText1', 'travelText2', 'travelText3', 'travelText4') function HandleTheRendering ( ) addEventHandler("onClientRender", getRootElement(), renderDisplay) -- Keep everything visible with onClientRender. end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) end function TravelScreen.show( mapName, authorName ) TravelScreen.startTime = getTickCount() g_dxGUI['travelText2']:text(mapName) g_dxGUI['travelText3']:text(authorName and "" .. authorName or "") g_dxGUI['travelText4']:text(authorName and "Author:" or "") showGUIComponents('travelImage', 'travelText1', 'travelText2', 'travelText3', 'travelText4') guiMoveToBack(g_GUI['travelImage']) playSound("audio/loading.wav") end function TravelScreen.hide() hideGUIComponents('travelImage', 'travelText1', 'travelText2', 'travelText3', 'travelText4') end function TravelScreen.getTicksRemaining() return math.max( 0, TravelScreen.startTime + 3000 - getTickCount() ) end
-
is there any way to delete in-game map? i mean if you are playing u can delete maps on the server instead of going to ftp and delete it?
-
put a flag image on the Dx join msg
-
hey bro i replaced that syntax on the server script but this is what i get: i did this: function showHome() local imgPath = ":admin/client/images/flags/"..getElementData(source,"Country")..".png" setElementData(source,"Country",Home) end addEventHandler("onPlayerJoin", root, showHome)
-
it works thx and if i want to create it whit flags image from admn ? like scoreboard?
-
font = dxCreateFont("font.ttf", 18) function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end local messageJoin = "" local messageQuit = "" function renderPlayerJoined ( ) dxDrawColorText("► ".. messageJoin,400,750.0,574.0,20.0,tocolor(255,255,255,255),0.45,font,"left","top",false,false,false) end function renderPlayerLeft ( ) dxDrawColorText("◄ ".. messageQuit,400,740.0,574.0,32.0,tocolor(255,255,255,255),0.45,font,"left","top",false,false,false) end addEventHandler('onClientPlayerJoin', root, function() country = getElementData(source,"Country") messageJoin = getPlayerName(source) .. " #00A6FFhas #FFFFFFJoin #00A6FFThe server "..country.."." addEventHandler ( "onClientRender", root, renderPlayerJoined ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerJoined ) end ,7000,1 ) end ) addEventHandler('onClientPlayerQuit', root, function(reason) messageQuit = getPlayerName(source) .. " #00A6FFhas #FFFFFFLeft #00A6FFThe server.#FFFFFF [" .. reason .. "]" addEventHandler ( "onClientRender", root, renderPlayerLeft ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerLeft ) end ,7000,1 ) end ) fileDelete("joinquit.lua")