-
Posts
271 -
Joined
-
Last visited
-
Days Won
2
Posts posted by Syntrax#
-
-
After 4 years it was time to revive this project for the last time and actually release it to the community. Problem is that i lost everything so i've restarted the development and creating the RPG from scratch again on my own. Hope to see you guys soon
-
-
After further debugging i've narrowed the problem to this single line
Old version $response = $mta->getResource('SAFGdb')->call("verifyLogin",$playerUsername, $playerPassword); new version that works but does not trigger the resource call("verifyLogin",$playerUsername, $playerPassword);
-
Hello,
I´m creating a function that verifies the player that tries to login on the forum by checking the ingame account details. But the problem is the line that is being used to communicate between the php file and the server.
$response = $mta->getResource('SAFGdb')->call('verifyLogin', $playerUsername, $playerPassword)
Whenever i add this line the page throws an error 500
-
9 minutes ago, erisP said:
local tableData = getElementData(source,"dataT") or {} outputChatBox(toJSON(tableData)) print - [ { "38": 2, "30": 3 } ] addEventHandler("onPlayerQuit", root, function() local account = getPlayerAccount ( source ) local data = toJSON(getElementData(source,"dataT")) or {} setAccountData(account,"SaveP", data) end) addEventHandler("onPlayerLogin", root, function(_, account) local Paintjobs = fromJSON(getAccountData(account,"SaveP")) or toJSON({}) setElementData(source,"dataT",Paintjobs) end)
hi, i can't save this where am i doing wrong?
Does it throw any errors in Debugscript?
-
6 hours ago, SphinxDev said:
Update: I try it but i got error.
debugscript 3 says:
ERROR: Loading script failed: an_trailersystem\server.lua:94: 'end' expected (to close 'function' at line 82) near '<eof>'
Might help if you paste your code here, can't see what you did with the code itself.
seeing the error code i see that you are missing an end within function detachTrailer
function detachTrailer(theTruck) if trailers[trailer] == false then --detachTrailerFromVehicle(theTruck, source) --detach the newly attached trailer -- Immediate detatchment of the trailer through cancel event or this method doesn't seem to work so requires a timer: setTimer(detachTrailer2, 50, 1, theTruck, source) end end addEventHandler("onTrailerAttach", getRootElement(), detachTrailer)
-
1 hour ago, SphinxDev said:
Okay i try it
Update: So i tried it, but when i attach the trailer with bind, after i attach the trailer is immediately get deattached, after attached and again deattach and this is go loop.
How can i fix this issue?Use a table to recognize if the key has been pressed to attach the trailer. if it is pressed it will allow it to attach. If it isnt attached it will detach the trailer.
-- just a table trailers = {} -- use this when creating the trailer trailer = createVehicle ( int model, float x, float y, float z) trailers[player] = false -- use this when you press the key trailers[source] = true function detachTrailer(theTruck) if trailers[trailer] == false then --detachTrailerFromVehicle(theTruck, source) --detach the newly attached trailer -- Immediate detatchment of the trailer through cancel event or this method doesn't seem to work so requires a timer: setTimer(detachTrailer2, 50, 1, theTruck, source) end addEventHandler("onTrailerAttach", getRootElement(), detachTrailer) function detachTrailer2(theTruck, trailer) if (isElement(theTruck) and isElement(trailer)) then detachTrailerFromVehicle(theTruck, trailer) end end
-
Just showing the resource, or is there a problem?
- 1
-
14 minutes ago, Addlibs said:
Have you checked using toggleBrowserDevTools DOM inspector whether the JS executes correctly and updates the DOM, that is, whether the element #orghomelogo's src parameter is indeed what you expect it to be?
Nvm fixed it, thank you for the help. didn't need to get texture pixels as it already was like that.
Topic can be closed
-
21 minutes ago, Addlibs said:
You need to base64Encode the output of dxGetTexturePixels(texture) not just texture itself, and you need to prepend "data:image/png;base64," to the encoded base64 if you want it to be interpreted as raw data rather than a URL.
texture = dxCreateTexture(pixels) newpixels = dxGetTexturePixels(texture) encoded = "data:image/png;base64,"..base64Encode(newpixels).."" executeBrowserJavascript(webBrowser, "document.getElementById('orghomelogo').src='"..encoded.."';document.getElementById('homename').innerHTML = '" .. gangname .. "'") return
Still nothing, it does not create the image ingame. Also not getting any error messages
-
Hello community,
So i'm working on a user interface and have come up with a problem. I wanted to use profile images without having to download it. I've managed to get it by converting the image on https://www.base64-image.de/ . Now was the question if it is possible without having to use the website so the player can just insert a .png file
texture = dxCreateTexture(pixels) encoded = base64Encode(texture) executeBrowserJavascript(webBrowser, "document.getElementById('orghomelogo').src='"..encoded.."';document.getElementById('homename').innerHTML = '" .. gangname .. "'") return
-
https://wiki.multitheftauto.com/wiki/CEF_Tutorial
Use this to start off with the basics. If you need any help feel free to contact me over PM.
-
6 hours ago, Simple01 said:
Good service but ain't that cheap.
3$
-
Yet another community based on WSS resources
-
Project has been revived, Didn't had the available time to create this server but now i do have spare time to complete this awesome project
-
Did you rush the design or is it really that bad, overall i do see community scripts such as the radar but won't judge you on that.The only thing that quites disturbs me is the fact that you are using the nulled version of IPB which puts you under the category that isn't taking this seriously, consider chaning to another free Forum software or buy an actual license from IPB in order to prevent problems within the future.Anyway good luck and hope y'all have fun
- 1
-
12 minutes ago, Karim02 said:
Discord link is expired
link has been updated thank you for reporting this
-
Welcome fellow community members,
I'm here to update everyone about the status of dynasty network. Since everyone does consider this as a dead project or something that won't be released. This is not the case, i'm putting all my available time into this project and we had a pretty messed up year behind us. Several developers joined us and left us which leaded in a total conversion of the theme. We're not longer making usage of the integraded MTA GUI, we've successfully managed to create everything with HTML / Javascript to create the closest encouter towards perfection within Multi Theft Auto. This revolution in the UI framework will give the RPG category a boost and will eventually attract a larger public within MTA. So expect great things to come within this month, just keep in mind that i'm working on this myself without any help regarding the scripting part so please don't come up with questions regqrding the release date since this hasn't be set yet.
Cheers,
Serenity
-
Well as far as i know i didn't even use SAES resources, You're the one that is having that reputation mate.
-
3 minutes ago, Thrzu said:
Can you point out the things you think are familiar to Dynasty Network so that we can make a change? Dynasty is not even out yet, how in the world are we going to get obsessed about it until we decide to waste our time copying it... besides that don't worry about your stuff being copied, unlike you and your former partner 'infinity' we have no intentions in using people's resources unless its legally released. What a drag...
First of all never worked with Infinity on Dynasty Network. I've Always worked on it alone and i'm not talking about the ingame things i'm talking more about the way of coloring the text etc. Never said you copied anything ingame only the layout of the forum post is nearly the same ... And i've never used any community scripts within this gamemode.
It's such a shame that you claim that Dynasty Network is using community resources or leaked RPG scripts. If you check out the scripts we already show on the forums you can literally see nothing has been copied and since this is a gamemode build up from scratch you won't even find any copied script. So beside the fact you are posting this type of nonsense take the time to actually get your facts right before pointing a finger towards any server.
-
Well based on what i did saw on the post itself i can assure you it does look familiar to Dynasty Network. But if we look into the server itself Dynasty Network is literally a step higher than what they currently show. Just make sure you don't copy anything from Dynasty Network so this won't end up in an argument.
-
The physics must be optimised cause right now it's totally garbage when hitting the ball and a bad internet connection does make the ball trip like a piece of :~
-
getting the following error when starting het module on Linux
MODULE: Unable to load x64/modules/ml_pathfind.so (/root/multitheftau
to_linux_x64-1.5.4/x64/linux-libs/libstdc++.so.6: version `GLIBCXX_3.4.18' not f
ound (required by /root/multitheftauto_linux_x64-1.5.4/x64/modules/ml_pathfind.s
o))
Tried everything i know but still nothing can't seem to get it workingapt-get install libstdc++6 does not fix this problem
-
What does the server has to do with the hosting itself. You should say i do like this host
[WIP] Project Hardcore Action-RPG
in Servers to play on
Posted
Great work