Jump to content

Syntrax#

Members
  • Posts

    269
  • 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,441 profile views

Syntrax#'s Achievements

Peon

Peon (20/54)

73

Reputation

  1. Syntrax#

    PHP SDK

    Topic can be locked, solved the problem
  2. 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);
  3. 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
  4. Does it throw any errors in Debugscript?
  5. 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)
  6. 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
  7. Just showing the resource, or is there a problem?
  8. 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
  9. 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
  10. 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
  11. 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.
  12. 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
  13. 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
×
×
  • Create New...