Jump to content

Syntrax#

Members
  • Posts

    271
  • Joined

  • Last visited

  • Days Won

    2

Syntrax# last won the day on April 11 2017

Syntrax# had the most liked content!

5 Followers

About Syntrax#

  • Birthday April 9

Details

  • Gang
    SAFG:RPG
  • Location
    Belgium
  • Occupation
    SAFG:RPG Developer
  • Interests
    Scripting/Mapping/Designing

Recent Profile Visitors

3,955 profile views

Syntrax#'s Achievements

Peon

Peon (20/54)

74

Reputation

  1. 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
  2. Syntrax#

    PHP SDK

    Topic can be locked, solved the problem
  3. Syntrax#

    PHP SDK

    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);
  4. Syntrax#

    PHP SDK

    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
  5. Does it throw any errors in Debugscript?
  6. 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)
  7. 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
  8. Just showing the resource, or is there a problem?
  9. 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
  10. 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
  11. 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
  12. Syntrax#

    HTML script

    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.
×
×
  • Create New...