-
Posts
26 -
Joined
-
Last visited
-
Days Won
1
XeroXipher last won the day on February 23
XeroXipher had the most liked content!
About XeroXipher
- Birthday 17/12/1990
Details
-
Gang
The Lost Tribe
-
Location
Las Santos
-
Occupation
Hustler
-
Interests
Selling Dope
Recent Profile Visitors
1,032 profile views
XeroXipher's Achievements

Advanced Member (8/54)
5
Reputation
-
Hey guys, by now I'm sure some people know I am working on a Roleplay Server in MTA SA... I am at the moment considering moving in a different direction. I'll explain the dream and the problems. The dream for SinglePlayer/Multiplayer MTA mode is to add the NPC Characters into the Game and script paths they can walk and drive on and populate the world and gameplay with NPCs from GTA SA... The Problem is, I live on Welfare and I am always broke... I will not have to host the SinglePlayer mode which is good because it would cost a ton to host all of those NPCs walking and driving around --but, if I make an English RP and host that server, I might be able to make a Profit... With the SinglePlayer mode, I don't have to pay for server hosting but there is no way to make money off of it either... So my question is: Should I consider making a Multiplayer Roleplay mode and hopefully become popular and make a little profit or should I make a SinglePlayer mode for the dream of it... Also, can anyone here think of a way to make a little bit of money from a SinglePlayer Gamemode? I hope I posted this in the right place and look forward to getting input from you guys.
-
Is there an easier way to be doing dxTextDraw?
XeroXipher replied to XeroXipher's topic in Scripting
Thanks IIYAMA... I am looking it over... Also, I notice you're famous XD (You made the wiki page to the function you just described) -
Is there an easier way to be doing dxTextDraw?
XeroXipher replied to XeroXipher's topic in Scripting
Thanks for helping me out there. And Thank You too... the first answer was easier to understand but the example of the second answer was what I was looking for. Thanks. -
XeroXipher started following Windows Game Server TovHost and Is there an easier way to be doing dxTextDraw?
-
Hey guys... I used DXTextDraw for my OnScreenText... This is an example of my local Time and Date Text and Branding: function TimeDisplay() local time = getRealTime() local hours = time.hour local minutes = time.minute local seconds = time.second local monthday = time.monthday local month = time.month local year = time.year local formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", year + 1900, month + 1, monthday, hours, minutes, seconds) dxDrawRectangle(x*1000, y*850, x*1050, y*890, tocolor(130, 130, 110, 100)) --dxDrawText(""..formattedTime.."", x*1460, y*0.456, x*0.23206442594528, y*0.06119791790843, tocolor(184, 184, 43), 1.0, pricedown, "center", "center", , false, true, false, false) dxDrawText("Sneaky Owl", x*9, y*880, x*246, y*890, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) -- Your Text Bottom Left dxDrawText("Local Time: "..formattedTime.."", x*1270, y*870, x*1320, y*890, tocolor(255,255,255,255), 0.65, "bankgothic", "center", "center", false, false, true, false, false) end addEventHandler('onClientPreRender',getRootElement(), TimeDisplay) For the most part I guess a lot at the x and y coordinates before deciding I like it. I am making an Overlay for a Job System when in Vehicle... It is in the beginning stages: screenWidth, screenHeight = guiGetScreenSize() px, py = 1600, 900 x, y = (screenWidth/px), (screenHeight/py) function DrawJobHud() dxDrawRectangle(x*1200, y*120, x*1400, y*400, tocolor(0, 0, 0, 150)) dxDrawText("Job: RS Haul Driver", x*20, y*10, tocolor(255, 255, 255),1.0, "bankgothic", "center", "center", false, false, false, false, false) end addEventHandler("onClientRender", root, DrawJobHud) This is probably really simple, but is there a way to do like local onScreenHud = dxDrawRectangle(etc) and then in dxDrawText use an x/y definition based off of the dxDrawRectangle (onScreenHudi)... So instead of doing dxDrawText("Text", x*1210, y* 130... ) I could do dxDrawText("Text", x*20, y* 10.. ) (for 20 pixels right of the Draw Rectangle and 10 pixels down)?
-
Hey guys, I am still having trouble with this... How can I zoom in / zoom out (Mousewheel Up / Mousewheel Down) and move map with (Hold Left Click -> Move Mouse) ?
-
@TovHost are you still doing this? Your Discord Link expires.
- 9 replies
-
- windows server 2022
- windows server 2016
- (and 4 more)
-
Hi... I don't know what you mean by coreconfig.xml (I don't think this comes with the default MTA SA server... But in the server files you can find mtaserver.conf file which had all of the loaded resources. Down almost at the bottom (of mtaserver.conf): --You'll see this area which is where you put your Resources... --resource src is the name of the resource. --startup="0" means don't start up when server starts and startup="1" means DO start up when server starts. --and protected="1" means don't shutdown server while this service is active (it should be used for database scripts. --I think what you want is: <resource src="YourResource" startup="0" protected="0" /> (startup="0" is what I think you want to do.) <resource src="admin" startup="0" protected="0" /> <resource src="Commands" startup="1" protected="0" /> <resource src="Database" startup="1" protected="1" /> <resource src="DXRec" startup="0" protected="0" /> <resource src="GPS" startup="1" protected="0" /> <resource src="HUD" startup="1" protected="0" /> <resource src="JobSystem" startup="1" protected="0" /> <resource src="LoginSystem" startup="1" protected="0" /> <resource src="MiniMap" startup="1" protected="0" /> <resource src="RadioSystem" startup="1" protected="0" /> <resource src="Spawns" startup="1" protected="0" /> <resource src="Speedometer" startup="1" protected="0" /> <resource src="FuelSystem" startup="1" protected="0" /> <resource src="VehicleSystem" startup="1" protected="0" /> <resource src="YouTubePanel" startup="1" protected="0" /> </config> Sorry if I am way off on this... I am an amateur coder just trying to help.
-
XeroXipher started following Map and Radar Customization and Questions avout GTA SA in 2025
-
Hey guys... I've been getting help with things in MTA SA. I have 3 major questions... 1) I am thinking of making a Community Resource to spread Good Karma from all the help I am getting. Would people use a Community Resource from 2025? 2)In 2025 (by hosting the server not selling it), is there any profit in being a Server Host? 3)If I can make a profit how should I go about generating an income? (QUESTION 1 IS ASKING IF IM WASTING MY TIME MAKING A COMMUNITY RESOURCE AND QUESTIONS 2 AND 3 ARE QUESTIONS ABOUT MY SERVER)
-
Hey guys... I post for help almost everyday and I do feel bad about that... I want to be able to stand on my feet and hopefully after I figure this out I'll be able to focus on things I'm good at. I downloaded this resource on the MTA SA Community (Resources). It is a Square Minimap (Radar) and F11 Full Screen Map. These are pictures of my Server based around the Map so far: Picture of MTA SA with Minimap (Radar) Picture of MTA SA with F11 Map (Full Size Map) I did manage to get the ShowCursor() function to work and it works well, but to move Left (Press Left Button) Right (Press Right Button) Up (Press Up Button) Down (Press Down Button) I need to actually use the Buttons and can't use the Mouse. ZoomIn is (num_add) ZoomOut is (num_sub) I tried to add a keybind for ZoomIn/ZoomOut but it didn't work... Can someone show me how to Keybind a Function within the F11 Map (Like Zoom In / Out, Grab Map with Mouse and Move it) This is my code so far: --[[---------------------------------------------------- -- client script main -- @author Banex -- @update 24/03/2016 ----------------------------------------------------]]-- function onClientResourceStart() map = Map.new():init() map:setBounds(x*30,y*30,x*1306,y*708) map:setAlpha(200) radar = Map.new():init() radar:setBounds(x*20, y*560, x*281, y*193) radar:setStyle(2) radar:setAlpha(200) radar:setBlipSize(x*24) radar:setVisible(true) map.Switch = function() toggleCursor() mapKeys() map:setVisible(not map:isVisible()) radar:setVisible(not map:isVisible()) showChat(not map:isVisible()) end bindKey('F11', 'down', map.Switch) setPlayerHudComponentVisible("radar",false) toggleControl("radar",false) end function toggleCursor() local cursorState = isCursorShowing() -- Retrieve the state of the player's cursor local cursorStateOpposite = not cursorState -- The logical opposite of the cursor state showCursor(cursorStateOpposite) -- Setting the new cursor state end function mapKeys() bindKey("mouse_wheel_up", "down", radar_zoom_in) --This doesn't work bindKey("mouse_wheel_down", "down", radar_zoom_out) --And This doesn't work end addEventHandler("onClientResourceStart",resourceRoot,onClientResourceStart) function onClientResourceStop() setPlayerHudComponentVisible("radar",true) toggleControl("radar",true) end addEventHandler("onClientResourceStop",resourceRoot,onClientResourceStop) I'll stop blowing up this forum after this question has been resolved
-
Thx
-
Hello GTA Scripters... I don't like the fact that I am asking a new question everyday that passes but I've tried to resolve this problem and I have had no luck (I did come close though) When I press F11 to open Radar-Map, I can't drag or zoomin with my mouse because the map is in front of me but the Games Controls are still focused on the Player Camer. I have tried to setCameraMatrix(Player, a, b, c, d, e, f) AND setElementFrozen(the Player, true) This froze my Player and Camera which is what I wanted but I still couldn't zoom in or scroll the map with my mouse... I feel like an amateur because it is almost the default setup on the MTA Servers to have a Map you can zoom in or add a waypoint to. I can figure out how to zoom in / out on the map, my question right now is, how do I freeze camera when in Menu's (like a Custom Menu on F2) or Radar Map on F11?
-
Okay, thanks for your support : )
-
Okay, 2 things, first of all the problem had come back but I uninstalled and reinstalled MTA SA and I have been running the game for several hours without a crash... But how do I render the HUD without onClientRender()? I am willing to adept to a better way.
-
RESOLVED In the past I have used different languages that ignored whitespace in code... I guess MTA SA runs through the whitespace and I think that's where the memory leak was... I deleted all whitespace (Sometimes I find it easier to read code if there are linebreaks in the code) but I deleted these linebreaks and the client doesn't Freeze/Crasha anymore.
-
Hey, sorry, I didn't know if you would get my last post because it was flagged... I don't know how to fix a Memory Sink but I do believe that it what it is... This is: HUD.lua local sx,sy = guiGetScreenSize() local px,py = 1600,900 local x,y = (sx/px), (sy/py) function HUDDrawing() local playerHealth = getElementHealth ( getLocalPlayer() ) local playerArmor = getPedArmor ( getLocalPlayer() ) local playerMoney = getPlayerMoney( getLocalPlayer() ) local time = getRealTime() local hours = time.hour local minutes = time.minute local seconds = time.second local monthday = time.monthday local month = time.month local year = time.year local formattedTime = string.format("%04d-%02d-%02d %02d:%02d", year + 1900, month + 1, monthday, hours, minutes) local Inventory = dxCreateTexture("Inventory.png") dxDrawRectangle(x*1085,y*0,x*1490,y*160, tocolor( 46, 46, 42, 150 )) -- Create our black transparent MOTD background Rectangle. dxDrawRectangle(x*1265,y*0,x*1368,y*36, tocolor( 120, 120, 120, 180), true) dxDrawRectangle(x*1265,y*0,x*1368/400*playerHealth ,y*36, tocolor( 169, 48, 48, 200), true) dxDrawText(" Health: "..math.floor(tonumber(playerHealth)).."%", x*1265, y*0, x*1365, y*36, tocolor(255, 255, 255, 255), 1.10, "default-bold", "center", "center", false, false, true, false, false) dxDrawRectangle(x*1265, y*36, x*1368, y*36, tocolor(120, 120, 120, 180), true) dxDrawRectangle(x*1265, y*36, x*1368/400*playerArmor, y*36, tocolor(24, 60, 176, 200), true) dxDrawText(" Armor: "..math.floor(tonumber(playerArmor)).."%", x*1265, y*36, x*1365, y*74, tocolor(255, 255, 255, 255), 1.10, "default-bold", "center", "center", false, false, true, false, false) dxDrawText(" $"..math.floor(tonumber(playerMoney)).."", x*1300, y*72, x*1268, y*114, tocolor(255, 255, 255, 255), 1.10, "pricedown", "center", "center", false, false, true, false, false) dxDrawRectangle(x*1265,y*72,x*1368, y*36, tocolor( 115, 210, 90, 200), true) dxDrawText("Local Time: "..formattedTime.."", x*1480, y*112, x*1368, y*135, tocolor(255,255,255,255), 0.50, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText("Virox Roleplay", x*9, y*880, x*246, y*890, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) -- Your Text Bottom Left end -- attach the event handler to the root element of the resouce -- this means it will only trigger when its own resource is started function moveHUDComponent() setPlayerHudComponentVisible( "weapon", true ) setPlayerHudComponentVisible( "ammo", true ) setPlayerHudComponentProperty("weapon", "position", 950, 0) setPlayerHudComponentProperty("ammo", "position", 1000, 100) end addEventHandler("onClientResourceStart", resourceRoot, moveHUDComponent) addEventHandler("onClientRender", root, HUDDrawing) meta.xml <meta> <script src="HUD.lua" tpye="client" /> </meta> (I am going to delete my previous post, it got flagged, I think for Directly responding to you rather than quoting you.)