-
Posts
459 -
Joined
-
Last visited
Everything posted by FuriouZ
-
Hello ! I'm trying to replace NRG-500 variants ,but something is wrong here Can someone say how to do it ? Thanks Something i tryed .. (only first part (NRG-500F) works) function replaceVehicles () --'NRG-500F' local myVehicle = getPedOccupiedVehicle(localPlayer) -- Get the vehicle that they're in if (myVehicle) then local var1, var2 = getVehicleVariant(myVehicle) if var1 then NRG500Ftxd = engineLoadTXD ( "data/nrg500f.txd" ) engineImportTXD ( NRG500Ftxd, 522 ) NRG500Fdff = engineLoadDFF ( "data/nrg500f.dff",522 ) engineReplaceModel ( NRG500Fdff, 522 ) --'NRG-500RR' else if var2 then NRG500RRtxd = engineLoadTXD ( "data/nrg500rr.txd" ) engineImportTXD ( NRG500RRtxd, 522 ) NRG500RRdff = engineLoadDFF ( "data/nrg500rr.dff",522 ) engineReplaceModel ( NRG500RRdff, 522 ) end end end end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceVehicles )
-
Thanks ! But if i want add two teams there,who can use cars, then how should i do ? I tryed,but this doesn't work, with it i can use cars in all teams function showVehiclesGui() local team = getPlayerTeam(localPlayer) local FreeroamTeam = getTeamFromName("Freeroam Arena") local StuntageTeam = getTeamFromName("Stuntage Arena") if team and FreeroamTeam or StuntageTeam and team == FreeroamTeam or StuntageTeam then if guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) else guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end else outputChatBox("Vehicles are only allowed in Freeroam and -Stuntage Arena.", 255, 0, 0, true) end end bindKey("F2", "down", showVehiclesGui)
-
Hey, what is wrong with it ? client: local Freeroam = "Freeroam Arena" local freeroamPlayer = getLocalPlayer () - - - - function showVehiclesGui() if not freeroamPlayer then outputChatBox ( "Vehicles are only allowed in Freeroam Arena.", 255, 0, 0, true ) else if ( getTeamName( getPlayerTeam( freeroamPlayer ) ) == Freeroam ) then if guiGetVisible(GUIEditor_Window[1]) == true then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) else guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end end end function bindVehiclesGui() bindKey("F2", "down", showVehiclesGui) end addEventHandler("onClientResourceStart", resourceRoot, bindVehiclesGui) addEventHandler("onPlayerJoin", resourceRoot, bindVehiclesGui) It works, but only problem is that, if i am in another arena and press F2 then it doesn't appear in chatbox("Vehicles are only allowed in Freeroam Arena."). Thanks
-
You can use shaders ... or download my resource https://mega.co.nz/#!cUEXTbBY!cP-__S1HI ... CfolZl52rU PS: This is only on Elegy,but you can add more cars there.
-
Hello! I wan't to show you my map It isn't done yet,but i'll finish it soon (Please open image in new tab) Cover: Some more:
-
It isn't, I was testing MTA:Eir and they implemented GTA:VC and GTA:III into the game, but if you want to play on a vice city map with friends, then you should download the gta VC mp client. I mean that,you replace all objects from vc in mta and then you have map it or convert map to mta.
-
Oh,i got it ! Thank you ! This is my working way addEventHandler("onClientResourceStart", root, function () SignPainter45 = guiCreateFont("fonts/SignPainter.ttf", 45) ForzaLight15 = guiCreateFont("fonts/ForzaLight.ttf", 15) if not ( SignPainter45 or ForzaLight15) then SignPainter45 = guiCreateFont("fonts/SignPainter.ttf", 45) ForzaLight15 = guiCreateFont("fonts/ForzaLight.ttf", 15) end addEventHandler("onClientPreRender", getRootElement(), setFont) end ); function setFont ( ) guiSetFont( GUIEditor.label[1], SignPainter45 ); guiSetFont( GUIEditor.label[2], ForzaLight15 ); end
-
Yeah lol ... but ...
-
Nothing changed,still same problem If i restart script,then there isn't any problem,but if i restart again,then again fonts doesn't appear
-
No,i don't want give whole code,but i give start where are these fonts --'fonts' local SignPainter45 = guiCreateFont("fonts/SignPainter.ttf", 45) local ForzaLight15 = guiCreateFont("fonts/ForzaLight.ttf", 15) GUIEditor = { button = {}, staticimage = {}, label = {} } ------------- --World Gui-- ------------- addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.staticimage[1] = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, "img/backround.png", true) showCursor(true) --SELECT WORLD LABEL GUIEditor.label[1] = guiCreateLabel(0.27, 0.02, 0.47, 0.12, "Select World", true, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[1], SignPainter45) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") --TOTAL PLAYERS LABEL GUIEditor.label[2] = guiCreateLabel(0.38, 0.89, 0.24, 0.06, "Total players:", true, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[2], ForzaLight15) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") I hope,it is enough
-
They are in same function
-
Hello! I have problem with guiSetFont ...debugscript says warnings WARNING: Shodown\c_arena.lua:40: Bad argument @ 'guiSetFont' [Expected gui-font at argument 2,got nil] Fonts (line 19-21) --'fonts' local SignPainter45 = guiCreateFont("fonts/SignPainter.ttf", 45) local ForzaLight15 = guiCreateFont("fonts/ForzaLight.ttf", 15) Problem (line 38-42) --SELECT WORLD LABEL GUIEditor.label[1] = guiCreateLabel(0.27, 0.02, 0.47, 0.12, "Select World", true, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[1], SignPainter45) --line 40 guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") Thanks for helping
-
Yes,it is possible,but very hard to do ...
-
Yeah,it is possible,to replace paintjobs with shaders. Here is mine, you can download it for free, anyways ,this is only for elegy,but you can use it to create your own DOWNLOAD:
-
Good What are theese songs names in this video ? https://www.youtube.com/watch?v=wKC9Qt0F ... _VdHTVzCyI
-
Looks like inspired from Need For Speed World ?
-
I'll give a little idea. Add digital speedometer under the gears,it should be easy and userful in my opinion And AGAIN GOOD JOB !
-
Really cool man ! I'll hope you finish it soon
-
What to you do with minimap ? Remove it or crerate own ?
-
Well,i basically i need that,if i hit that marker (x,y,z),then i get another car..It need to be possible someway..
-
Hello,help me with this,i need to convert it only client-side.. Client: local delayvalue = false datmarker = createMarker (4805.2998,-1599.5,20,"corona",5,12,7,77,153) function changeVehFunc ( hitPlayer, matchingDimension ) if (matchingDimension and hitPlayer == localPlayer) then if delayvalue == false then triggerServerEvent("changeVeh", localPlayer) delayvalue = true setTimer(function () delayvalue = false end, 1500, 1) end end end addEventHandler("onClientMarkerHit", datmarker, changeVehFunc) Server: vehicles = {602,545,496,517,401,410,518,600,527,436,589,580,419,439533,549,526,491,474,445,604,507,585,587,466,492,546,551,516,467,426,547,405,409,550,566,540,421,529,581,509,481,462,521,463,510,522,461,448,468,586,485,552,431,438,437,574,420,525,408,416,433,427,490,528,407,544,523,470,598,596,597,599,601,428,499,609,498,524,532,578,486,406,573,455,588,403,514,423,414,443,515,531,456,459,422,482,605,530,418,572,582,413,440,543,583,478,554,536,575,534,567,535,576,412,402,542,603,475,568,424,504,457,483,508,571,500,444,556,557,471,495,539,429,541,415,480,562,565,323,492,502,503,411,559,561,560,506,451,558,555,477,579,400,404,489,505,479,442,458} function changeVehicle (state) if state == "Running" then setTimer (function () local players = getAlivePlayers () for playerKey, playerValue in ipairs(players) do setElementModel (getPedOccupiedVehicle(playerValue), vehicles[math.random(#vehicles)]) end end, 1000, 1) end end addEvent("onRaceStateChanging", true) addEventHandler ("onRaceStateChanging", getRootElement (), changeVehicle) function changePlayersVeh () setElementModel (getPedOccupiedVehicle(source), vehicles[math.random(#vehicles)]) end addEvent("changeVeh", true) addEventHandler("changeVeh", getRootElement(), changePlayersVeh)
