-
Posts
656 -
Joined
-
Last visited
-
Days Won
2
Everything posted by John Smith
-
getSoundMetaTags
-
Can someone tell me would this script be downloaded and loaded in custom way or with mta downloader? (The loadfile function)
-
about colshape: i have asked for help, i didn't get any reply to it, and i basically have no idea what to do there and about this,i was planning to make scripts which wouldnt even need to be shut down cuz they would be finished already however would this function load/download that client1.lua file on custom way, or with mta downloader?i might use this, so im curious edit: also about unloading: i could write a script like this instead of just only loadfile function local client1 = assert(loadfile("client1.lua")) function teee() if client1 then -- umm nothing,client1 exists else error("no client1") end end function tat() teee() end addCommandHandler("fileload",tat) function notat() client1 = nil teee() end addCommandHandler("nofileload",notat) it should give an error and stop the loadfile script aaaalsoo.. why would i even need to unload the script anyway?if i wouldnt need it i would just stop it, and it would stop fine without needing to make any more useless lines
-
hey guys umm i have noticed something if i make a script(lets say client sided) in meta i put cache to false and download option to false as well so it doesn't download by in-built mta downloader if i got another file in meta which gets downloaded normally by in-built mta downloader and it has only this code loadfile("client1.lua") it will execute the script content of client1.lua file however,this seems to be too easy to make so i wanted to ask couple of questions. could scripts be downloaded like this? if script size would somehow be 10 mb, what would be happening when loadfile function would be initiated? would it execute the code as its being downloaded or would it execute code after it has been downloaded? edit: just one more thing, would this thing be downloaded by mta downloader even tho download option is 'false', or would this thing turn into "custom downloading file" ?
-
[SOLUTION] Dns and IP - MTA:SA 1.4.1
John Smith replied to #RooTs's topic in Site/Forum/Discord/Mantis/Wiki related
it would be great if ip's were hidden however players would still be able to see server ip's because in mta folder there's a file(i dont remember name) which is used to save servers in recent,favorites and internet tab would be great if that file would be encrypted or something too -
you can use just one function which replaces files, then attach command handler onto it, and set timer for a person or whole server to execute it every 2 seconds ( executing function is executeCommandHandler )
-
you can use shaders if you insist to have 2 car mods onto 1 car model ( in this case infernus)
-
i still dont get it how to fix this element=nil problem
-
yeah i could do all that magic, but theres still one problem and im trying to tell everyone 23101290 times about it that colshape variable is not defined in full script if i put it outside of every function(on top of script) not a single function will load it,idk why and if i put it in some function,only that function will be able to load it how do i define variable for whole script? (in this case 'ddd' variable which is that colshape element) ?
-
argument 2 is still nil addEventHandler("onColShapeHit", colshape,
-
bad argument 1 setTimer expected function at argument 1, got nil and it says "your vehicle will be destroyed..." as soon as resource starts, and not when vehicle gets into colshape
-
i renamed variable to 'ddd' and now at line 2 and 12 it says argument 2 element is nil because that function doesnt recognize 'ddd' variable, and if i place 'ddd' outisde of first function, it wont work at all also i doubt your destroyVeh function at setTimer would do anything as i don't see it anywhere defined
-
thanks but i meant the opposite if player hits colshape or a vehicle, then it cant go through is it possible to make it that way? also for line 2,7 it outputs that 2nd argument is nil
-
i have restarted whole server and set size to 5 and now it works, but its something weird it makes sphere on my position(big one) and attaches smaller one behind me(football ball size) edit: also, is there a way how can i make that when specific element hits the col sphere, that it creates the collision and element can't pass through or gets damage?
-
still nothing.
-
i cant see those green-red things at all, i said it already, i cant see them, thats the problem and reason why i made this topic
-
Sane Hosting - DDoS Protected - Cheap and Reliable
John Smith replied to SaneHosting's topic in Hosting solutions
+1 this is the truth: this comapny is about to die. no support anymore available(they dont answer to tickets,emails,skype) there are no any updates coming ftp doesn't work at all server status is always: unknown i recommend everyone who is using Sane-Hosting to switch to some other host because this host is obviously dying. -
here are exact steps how i did this Executing client-side command: setDevelopmentMode(true) Command results: true [boolean] restart: Resource restarting... showcol is now set to 0 showcol is now set to 1 -- command for colshape has been used in here -- output after command using: 1960.6787109375-2016.725585937513.3828125 (my coordinates) userdata: 0000000000013385 (colshape element created) however still not working
-
please help
-
how do i do that?im new to this col function idk sry edit: not sure if this can be a way to do it but i tried this colshape = createColSphere(x,y,z,2) outputChatBox(tostring(colshape)) it outputted userdata: 000000000000CE31
-
hi i just wanted to try out this function but i dont know what im doing wrong function createColField(thePlayer) local x,y,z = getElementPosition(thePlayer) createColSphere(x,y,z,20) outputChatBox(tonumber(x)..tonumber(y)..tonumber(z),thePlayer) end addCommandHandler("col_field",createColField) i set development mode with crun command and i used showcol command and in debugscript 3 no errors it outputs x,y,z but i dont see any collision thingy please help
-
Actually i wanted to replace table files with mod files which would load on client side,and im trying to download files which werent downloaded
-
hey guys umm i have tried now to make downloader in other way, without downloadFile function(for lower mta versions) but i have no idea what i'm doing wrong --server dFiles = { {"test_server.lua"}, {"test_client.lua"}, } function someFileFunctionsFunction(thePlayer) outputChatBox("Function initiated!") for _,dFiles in ipairs(dFiles) do if not fileExists(":downloader/files/"..dFiles[1]) then outputChatBox("Starting the download process...",thePlayer,0,255,0) local files = fileOpen(":downloader/files/"..dFiles[1],true) if files then local downloadFiles = fileRead (file,fileGetSize(file)) fileClose(files) triggerClientEvent("onStartDownload",thePlayer,downloadFiles,files) end else outputChatBox("even tho its not possible that player has downloaded already, he has!") triggerClientEvent("onVehModRequest",thePlayer,"startMods") end end end addCommandHandler("download",someFileFunctionsFunction) --client addEvent("onStartDownload",true) function clientDownloaderFunction(downloadFiles,files) if fileExists(files) then fileCreate(files) fileWrite(files,downloadFiles) fileClose(files) outputChatBox("Download has been finished!",0,0,255) else outputChatBox("something went wrong") return end end addEventHandler("onStartDownload",root,clientDownloaderFunction) i dont have any errors except debug saying that onVehModRequest is not added client-side(as i didn't download files yet,should have been impossible to trigger that client function) i dont know what to do now. this isnt working, please help
-
there still wont be any other color, but just one,the nametag color which freeroam sets by default and it will also look like this #00FF00Mi#0000FFke -- an example