Fabioxps
Members-
Posts
229 -
Joined
-
Last visited
Everything posted by Fabioxps
-
the letter continues increasing ????
-
the letter continues increasing
-
I want the text always the same size
-
I do not want the text gets bigger when the player leaves close addEventHandler ( "onClientRender", root, dxCreatePodium1s ) function dxCreatePodium1s () local x,y,z = getElementPosition(thirdCards) -- z = z + 2 local px,py,pz = x+5, y+10, z+2 local distance = getDistanceBetweenPoints3D ( x,y,z,px,py,pz ) if distance <= 150 then local sx,sy = getScreenFromWorldPosition ( x, y, z+0.55, 0.06 ) if not sx then return end local scale = 1/(0.3 * (distance / 150)) local scale = 1 / ( 0.3 * ( distance / 150 ) ) dxDrawText ( "Fabioxps", sx, sy - 70, sx, sy - 60, tocolor ( 255, 255, 255, 255 ), math.min ( 0.4 * ( 20 / distance ) * 1.4, 4 ), "default-bold", "center", "bottom", false, false, false, true ) --end --end --end end end
-
press F opens my guide when tightening over again does not close. local function showLobbys() guiSetVisible(lobbyButHunter,true); end local function hideLobbys() guiSetVisible(lobbyButHunter,false); end local Markerd = createMarker ( -3617.8000488281, -713.5, 7.9000000953674, "cylinder", 5, 255, 255, 0, 0 ) addEventHandler ( "onClientMarkerHit", Markerd, function ( hitPlayer, matchingDimension ) if hitPlayer == localPlayer then function ssd () showLobbys() end bindKey("f", "down", ssd) end end ) addEventHandler ( "onClientMarkerLeave", Markerd, function ( leftPlayer, matchingDimension ) unbindKey("f", "down", ssd) end ) hideLobbys();
-
I can not find what's wrong local Marker = createMarker ( 2498.1000976563, -1683.5999755859, 13.39999961853, "cylinder", 5, 255, 255, 0, 0 ) --setElementInterior( Marker, 0, 296, -37, 999.5 ) addEventHandler ( "onClientMarkerHit", Marker, function ( hitPlayer, matchingDimension ) if hitPlayer == localPlayer then function () showDx(); else hideDx(); end bindKey("f1", "down", ) end end ) addEventHandler ( "onClientMarkerLeave", Marker, function ( leftPlayer, matchingDimension ) unbindKey("f1", "down", ) end )
-
I sent you a pm
-
all players appears in winner
-
not working appears the name of all players winner
-
getPlayerName(player) is wrong, someone help me please addCommandHandler ( "rank", function ( player ) local rank = getElementData(player,"race rank") if ( rank == 3 ) then outputChatBox ( "#ffffff3º "..getPlayerName(player).." Winner!", root, 0, 0, 0, true ) end end )
-
poblem fixed thank you
-
I'm using this event in my RACE triggerClientEvent("showNextMapTextx",getRootElement()) just me on the server works perfect when you have more people creates many vehicles and destroy function does not work Client Side local peds = {} function asd() triggerServerEvent( "onCameraStartz",getRootElement(), inici) addEventHandler("onClientRender",root,camera) setTimer ( function() removeEventHandler("onClientRender",root,camera) end ,4000,1) end addEvent("showNextMapTextx",true) addEventHandler("showNextMapTextx",getRootElement(),asd) function camera ( ) for ped,veh in pairs(peds)do local x, y, z = getElementPosition(veh) setCameraMatrix(x+12, y+11, z+4, x, y, z) end end function cameraStarts(ped1) setPedControlState(ped1,"accelerate",true) setTimer(function() setPedControlState(ped1,"accelerate",false) end,800,1) car1 = getPedOccupiedVehicle(ped1) if not peds[ped1] then peds[ped1] = car1 end end addEvent( "onCameraStart", true ) addEventHandler( "onCameraStart",root, cameraStarts ) Server Side addEvent("onCameraStartz",true) addEventHandler("onCameraStartz",getRootElement(), function() ped1 = createPed(0, 138.70454406738, 2491.1267089844, 16.484375) car1 = createVehicle(411, -73.699996948242, 2506.3999023438, 16.299999237061,0,0,270) warpPedIntoVehicle ( ped1, car1 ,0 ) triggerClientEvent("onCameraStart",root, ped1, car1) setTimer( function() destroyElement(car1) destroyElement(ped1) end ,5000,1) end) from already thank you
-
I do not speak English I'm sorry I take a look here does not work local peds = { } local pedss = { } local pedsss = { } function asd() triggerServerEvent( "onCameraStartz",root, inici) end addEvent( "showNextMapText", true ) addEventHandler("showNextMapText",getRootElement(),asd) function cameraStarts(ped) setPedControlState(ped,"accelerate",true) setTimer(function() setPedControlState(ped,"accelerate",false) end,100,1) pVeh = getPedOccupiedVehicle(ped) if not peds[ped] then peds[ped] = pVeh end addEventHandler("onClientRender",getRootElement(),stunt) end addEvent( "showNextMapTextsss", true ) addEventHandler( "showNextMapTextsss",root, cameraStarts ) function stunt ( ) local x, y = guiGetScreenSize ( ) for _, veh in pairs ( peds ) do if ( veh ) then local x, y, z = getElementPosition ( veh ) local px, py, pz = x + 5, y + 10, z + 2 local distance = getDistanceBetweenPoints3D ( x, y, z, px, py, pz ) if ( distance <= 150 ) then local sx, sy = getScreenFromWorldPosition ( x, y, z + 0.55, 0.06 ) if ( sx ) then if stunt ~= nil then local scale = 1 / ( 0.3 * ( distance / 150 ) ) dxDrawImage ( sx - 100, sy - 105, 200, 70,"tooltip.png",0,0,0,tocolor(255,255,255,255)) dxDrawText ( "aa", sx, sy - 70, sx, sy - 60, tocolor ( 255, 255, 255, 255 ), math.min ( 0.4 * ( 20 / distance ) * 1.4, 4 ), "default-bold", "center", "bottom", false, false, false, true ) end end end end end end function inici() segura = createObject ( 3316, -1061.6999511719, 914.79998779297, 3.2999999523163, 0, 0, 101.99353027344 ) ped = createPed(0, -1048.6999511719,909.59997558594, 1.2000000476837) pVeh = createVehicle ( 411, -1048.6999511719,909.59997558594, 1.2000000476837, 0, 0, 247.99438476563 ) warpPedIntoVehicle ( ped,pVeh ,0 ) setVehicleColor( pVeh, 255, 255, 0 ) triggerClientEvent("showNextMapTextsss",root, ped,pVeh) outputChatBox("test") end addEvent( "onCameraStartz", true ) addEventHandler( "onCameraStartz",root, inici) function inicis() destroyElement(segura) destroyElement(pVeh) destroyElement(cAmssss) end addEvent( "onCameraFiniched", true ) addEventHandler( "onCameraFiniched",root, inicis)
-
because it does not work function asd() ped = createPed(0, -1048.6999511719,909.59997558594, 1.2000000476837) pVeh = createVehicle ( 411, -1048.6999511719,909.59997558594, 1.2000000476837, 0, 0, 247.99438476563 ) warpPedIntoVehicle ( ped,pVeh ,0 ) addEventHandler("onClientRender",getRootElement(),stunt) end addEvent("showDrawTag",true) addEventHandler("showDrawTag",getRootElement(),asd) function stunt ( ) if pVeh ~= nil then local x,y,z = getElementPosition(pVeh) local px,py,pz = x+5, y+10, z+2 local distance = getDistanceBetweenPoints3D ( x,y,z,px,py,pz ) if distance <= 150 then local sx,sy = getScreenFromWorldPosition ( x, y, z+0.55, 0.06 ) if not sx then return end local scale = 1/(0.3 * (distance / 150)) if winnername2 ~= nil then local scale = 1 / ( 0.3 * ( distance / 150 ) ) dxDrawImage ( sx - 100, sy - 105, 200, 70,"tooltip.png",0,0,0,tocolor(255,255,255,255)) dxDrawText ( "aa", sx, sy - 70, sx, sy - 60, tocolor ( 255, 255, 255, 255 ), math.min ( 0.4 * ( 20 / distance ) * 1.4, 4 ), "default-bold", "center", "bottom", false, false, false, true ) end end end end end end
-
solved thank OGF and Castilho
-
the interpolateBetween only works when I start the resource in
-
the interpolateBetween only works when I start the resource in
-
but the camera is not coming back to the beginning castilho
-
I want to go back to the beginning
