Leaderboard
Popular Content
Showing content with the highest reputation on 24/03/20 in all areas
-
Correct. You have be to logged-in as admin of course. This way you see both client-side errors as well as server-side errors. Always happy to help! ?1 point
-
Hello Bartje, the problem is that you are mixing up client-side functionality with server-side functionality. You are trying to use the localPlayer global variable in a server-side script. But there is no localPlayer on the server because the server is not a game window. Fixed script for you: function createTheMarker ( cmdPlayer ) local x, y, z = getElementPosition(cmdPlayer) local theMarker = createMarker ( x, y+5, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", theMarker, markerTriggered ) end addCommandHandler ( "create", createTheMarker ) function markerTriggered ( ) outputServerLog ( 'hit' ) end Did you know about the script debug output? If you look into the server console then it should tell you which line is at fault and maybe which function got you an error.1 point
-
https://www.w3schools.com/SQL/sql_orderby.asp SELECT state1, state2, state3, ..., characterName FROM characters WHERE ... ORDER BY characterName ASC1 point
-
The type of help I expect is like yours It teaches me the benefits of the various functions that help me to develop I repeat this thank you very much but with mysql charactar names sort how i can do that and get the character states @The_GTA1 point
-
Thank you for coming back to this forum and sharing the results of your work/research! I wish more people would do this kind of thing.1 point
-
Amit küldtem az-az alap voice resource, azzal lehet ilyen csatornákat csinálni. Ha azt akarod, hogy közeledben lévők és a telefonon is halljanak, akkor tudod ezen felül állítani, hogy ki hallja a játékost. (setPlayerVoiceBroadcastTo)1 point
-
outputChatBox("#FFFFFF[GANG] #00FFFF Você Passou pro level "..getElementData(localPlayer,"level").. " na sua gang.",255, 255, 255, true ) ( <1 point
-
A playereket külön csatornákra lehet tenni, azok hallják egymást akik azonos csatornán vannak. Mikor valakik telefonon beszélnek, akkor azonos csatornára kell őket tenni. https://wiki.multitheftauto.com/wiki/Resource:Voice1 point
-
line 25 replace with: outputChatBox("#FFFFFF[GANG] #00FFFF Você Passou pro level "..(getElementData(localPlayer,"level").. " na sua gang.",255, 255, 255, true ) Did you know that clientside outputChatBox does always only output the text for yourself, not other people?1 point
-
It looks like this character system does use many smooth camera transitions. For that you will have to use the MTA camera functions: smoothMoveCamera - useful function for interpolating a camera between two look-at points getCamera - for advanced effects used in combination with setElementPosition and setElementRotation setElementPosition setElementRotation I think you can figure out the character data into that MySQL table out yourself. Seems pretty straightforward, like character ID, name and language. Design-wise I recommend creating a scene for the character selection. You see that those characters are placed on tree-stumps. Think of something creative yourself, select a position on the map to put it and script the characters and the camera to be placed there. You may even want to play around with the MTA map editor. createObject - for creating background props at the character selection screen The DX overlay seems pretty basic. You should know about DX functions since we have recently talked about UI creation for an inventory system. getScreenFromWorldPosition - to get the position to draw DX at on the screen for attached-to-players overlay getPedBonePosition - you may want to get the position of the player head to draw the name at like in the video dxDrawLine3D - used for item placement highlight in the video At certain parts in the video (10:38) you see a message queue pop up above the player's head. Looks like a list of string messages that gets removed after a some timer has passed. I recommend writing a queue system yourself where you store the beginning time of each message and remove the items whose elapsedTime has reached 3 seconds during a server-side setTimer loop. You may want these functions: setTimer - creating a loop on the server to handle removal of messages getTickCount - check expire of single messages by calculating the elapsedTime the typical dx functions like dxDrawText and dxDrawRectangle I am curious. What kind of help are you expecting? You know that this is a lot of work, right?1 point
-
Your PC has a virus: https://www.virustotal.com/gui/file/e5f7d52fc5a390a0ba0bd933f136adfc8d534daa473cfb567406ee54d9369f30/detection Install anti-virus and do a full PC scan: https://forum.multitheftauto.com/topic/64715-install-anti-virus/ Then reinstall MTA1 point
-
1 point
-
It's funny how easy this was now after having learned JavaScript, HTML and CSS along with SQL more intensively for the past year. Made a working script for a few hours and finished it in a few days. Here's my web toptimes viewer: https://community.multitheftauto.com/index.php?p=resources&s=details&id=180651 point
-
Have you ever experienced the awkward moment when you had to check your large map to see which direction you have to go? This resource lets you make important blips visible on players' screen, something you would see in games like Watch Dogs or Assassin's Creed. The only thing you have to do is set a "blip.visibleOnScreen" element data to true for a blip you would like to make visible, and the blip will be always on your screen, aiming towards the position of the blip. Check the examples given in the script. This DOES work on every resolution, blips won't go out of screen, so no need to be afraid or edit because of that. You can see the distance between the blip and you under the blip image as well. Edit this resource however you want, all I ask for is to leave the credits for me. (I used different blip images from my radar resource on the pictures, feel free to change them.) QUICK UPDATE: Made the distance numbers more easy to read by adding convertNumber function - before: 3328 | after: 3,328 Video preview (sorry for the bad video quality, I don't know why it is that bad): Screens: Changelog: UPDATE (1.0.1): - Made the distance numbers more easy to read by adding convertNumber function - before: 3328 | after: 3,328 UPDATE (1.0.2): - Removed leftover unnecessary lines from the script that I needed for debug used for my radar UPDATE (1.0.3): - Added possibility to disable backgrounds with a variable - Disabled distance check on the Z axis, since this is a 2D display - textOffset works automatically now (you don't have to change that if you disable the background or change the image/background sizes) UPDATE (1.0.4): - Fixed a typo UPDATE (1.0.5): -Fixed typos -Improved fading (not sketchy anymore, fades perfectly and smooth) -Removed unnecessary lines Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=145311 point
-
50% of problems (like crashes and AC kicks/errors) are caused by viruses interfering with MTA. INSTALL ANTI-VIRUS and make sure REAL TIME SCANNING is ENABLED. DO NOT ASK FOR SUPPORT WITHOUT ANTI-VIRUS INSTALLED Free anti-virus products: Bitdefender Antivirus Free AVG AntiVirus Free Kaspersky Security Cloud Free Free anti-malware products: Malwarebytes RUN BOTH ANTI-VIRUS AND ANTI-MALWARE FULL SCANS AFTER DOWNLOADING THEM, BEFORE ASKING FOR HELP!1 point
