-
Posts
1,619 -
Joined
-
Last visited
Everything posted by Dark Dragon
-
I am sorry but this code just... doesn't make any sense? are you sure you've posted it correctly? because it is totally malformed. could you tell us what you were trying to do? you better just start from scratch again. i recommend you to try a general lua tutorial first, you don't seem to know much of programming/scripting at all.
-
I think at the moment there is no such script available to the public. i might consider releasing my script once but at the moment i'd say you have to script it yourself
-
hm unfortunately the only information i could find is this https://wiki.multitheftauto.com/wiki/Known_Issues ... any_server but i doubt this is the problem is there anything you can tell additionally? so it does in fact happen on every server? at the exact same time? right when the loading is finished?
-
well if it's not 3 gb, has another name and does other stuff maybe it is something else
-
well you already posted the correct wiki pages. what you need now is knowledge about how to script and how to work with resources. we can't post any script because we don't even know what you want, which cars and when and so on. that's why you have to do it.
-
nevermind then but i'm actually pretty sure that i once had problems with that.
-
what do you mean by what type? did you ever see coordinates being used? they indicate a position with 2 or 3 numbers, from -∞ till +∞
-
<script src="script.lua" type="server" /> you're missing the script type
-
after creating the team you can use the onPlayerLogin event and compare if the admin group is the same as the players group and set the players team if they match. look at the pages examples. they can point you the right way
-
firstly you should have a look at this: https://wiki.multitheftauto.com/wiki/Server_Manua ... stallation
-
it's just been like that for so long now. key links are simply missing. the known issues/faq for example even i have no idea where i could get mta race if i wanted to download it at the moment (except of some unofficial mirrors google can offer)
-
Voting on signatures.
Dark Dragon replied to robhol's topic in Site/Forum/Discord/Mantis/Wiki related
people who prefer the forums without signatures can still turn them off so i vote YES -
edit: -removed due to too much QQ- if you're interested in the original text feel free to contact me.
-
the link won't help him. you can't find race anywhere there. the archive is totally outdated the main page is a total mess at the moment https://forum.multitheftauto.com/viewtop ... 13&t=25956 but no one seems to care
-
login as an admin and type /debugscript 3 the nrestart the resource and see what errors appear there.
-
login as an admin and type /debugscript 3 the nrestart the resource and see what errors appear there.
-
Textures, Frame Limiters, Haze effects, View Distance, etc.
Dark Dragon replied to inteGReddy's topic in Suggestions
the texture detail and quality is definitely not something the server should be able to set. there are already enough people complaining about low performance on mta. having them set all their settings to high would be pretty stupid -
Textures, Frame Limiters, Haze effects, View Distance, etc.
Dark Dragon replied to inteGReddy's topic in Suggestions
the texture detail and quality is definitely not something the server should be able to set. there are already enough people complaining about low performance on mta. having them set all their settings to high would be pretty stupid -
https://community.multitheftauto.com/data.zip those are the original ones, just replace your modified ones with them please use the search feature of the forums next time.
-
https://community.multitheftauto.com/data.zip those are the original ones, just replace your modified ones with them please use the search feature of the forums next time.
-
i see robhol created lots of accounts here.
-
i see robhol created lots of accounts here.
-
local rootElement = getRootElement() --define what rootElement is (that's probably your main problem) local NPC = createPed(124,0,0,5) local screenWidth, screenHeight = guiGetScreenSize() --you don't need to get this every frame, it will not change local maxrange = 45 -- the max range the text can be seen (modify to your preferences, i believe normal nametags use 45 too) function NPCnametag() local pedX,pedY,pedZ = getElementPosition(NPC) local sx,sy = getScreenFromWorldPosition (pedX,pedY,pedZ) local cameraX,cameraY,cameraZ = getCameraMatrix() if sx then --this will check if the ped is actually on screen (without this check you would have many errors in your debug log) if getDistanceBetweenPoints3D(cameraX,cameraY,cameraZ,pedX,pedY,pedZ) <= maxrange then --get the distance between two points in the 3d environment and check if it is smaller or the same as our maxrange dxDrawText("Bob",sx,sy,screenWidth, screenHeight,tocolor ( 255, 255, 0, 255 ), 2,"sans") --I'm not sure if the text was supposed to be invisible but I think I'll just change that too end end end function HandleTheRendering() addEventHandler("onClientRender",rootElement, NPCnametag) end addEventHandler("onClientResourceStart",rootElement, HandleTheRendering)
-
local rootElement = getRootElement() --define what rootElement is (that's probably your main problem)local NPC = createPed(124,0,0,5)local screenWidth, screenHeight = guiGetScreenSize() --you don't need to get this every frame, it will not changelocal maxrange = 45 -- the max range the text can be seen (modify to your preferences, i believe normal nametags use 45 too)function NPCnametag() local pedX,pedY,pedZ = getElementPosition(NPC) local sx,sy = getScreenFromWorldPosition (pedX,pedY,pedZ) local cameraX,cameraY,cameraZ = getCameraMatrix() if sx then --this will check if the ped is actually on screen (without this check you would have many errors in your debug log) if getDistanceBetweenPoints3D(cameraX,cameraY,cameraZ,pedX,pedY,pedZ) <= maxrange then --get the distance between two points in the 3d environment and check if it is smaller or the same as our maxrange dxDrawText("Bob",sx,sy,screenWidth, screenHeight,tocolor ( 255, 255, 0, 255 ), 2,"sans") --I'm not sure if the text was supposed to be invisible but I think I'll just change that too end endend function HandleTheRendering() addEventHandler("onClientRender",rootElement, NPCnametag)endaddEventHandler("onClientResourceStart",rootElement, HandleTheRendering)
-
local rootElement = getRootElement() --define what rootElement is (that's probably your main problem) local NPC = createPed(124,0,0,5) local screenWidth, screenHeight = guiGetScreenSize() --you don't need to get this every frame, it will not change function NPCnametag() local sx,sy = getScreenFromWorldPosition (getElementPosition(NPC)) if sx then --this will check if the ped is actually on screen (without this check you would have many errors in your debug log) dxDrawText("Bob",sx,sy,screenWidth, screenHeight,tocolor ( 255, 255, 0, 255 ), 2,"sans") --I'm not sure if the text was supposed to be invisible but I think I'll just change that too end end function HandleTheRendering() addEventHandler("onClientRender",rootElement, NPCnametag) end addEventHandler("onClientResourceStart",rootElement, HandleTheRendering)
