Jump to content

mint3d

Members
  • Posts

    425
  • Joined

  • Last visited

Everything posted by mint3d

  1. Okay so I came across the old MTA Paradise script and I started to play around with it and look into it, so I then decided lets try actually run it and see what happens, it's giving me an error which is; registration.lua:60: attempt to call global 'sha1' (a nil value) This refers to this piece of code; if exports.sql:query_free( "INSERT INTO wcf1_user (username,salt,password) VALUES ('%s', '%s', SHA1(CONCAT('%s', SHA1(CONCAT('%s', '" .. sha1( password ) .. "')))))", username, salt, salt, salt ) then Anyone able to explain to me what the problems is and any solution to fix it? Thanks for reading!
  2. That is because you're using onClientResourceStart that's your first problem that you need to fix if you don't want it to show up.
  3. setElementInterior ( myMarker, 3) You realise that you're using myMarker as a Element, which basically setting the marker into interior 3 onMarkerHit
  4. mint3d

    MySQL

    I sent you a private message.
  5. mint3d

    MySQL

    I want add a new record in the column for when I register My database is something like; dbQuery( connection, "INSERT INTO user (userid, username, usergroupid, password, salt, online, admin) VALUES(?, ?, 1, ?, ?, 1, 0)") When I click register it sends this to my server side... function registerClick(btn, state) local username = tostring(guiGetText(loginGUI.username)) local password = tostring(guiGetText(loginGUI.password)) if btn == "left" and state == "up" then triggerServerEvent("tryRegister", username, password) end end
  6. mint3d

    MySQL

    Can you give me some function I'll need to be able to add it into a DB as I'm really unsure
  7. mint3d

    MySQL

    I have a piece of code which is used to fetch the Login Results... connection = dbConnect("mysql", "dbname=" .. get("@MYSQL_DB") .. ";host=" .. get("#MYSQL_HOST"), get("#MYSQL_USER"), get("#MYSQL_PASS")) dbQuery(loginCallback1, { player, username, password, rememberMe }, connection, "SELECT userid, username, usergroupid, password, salt FROM user WHERE username = ?", username)
  8. mint3d

    MySQL

    How would this be stored in the database? My friend used a php website for a UCP to register, I have created a IG register button, although I have no idea how to store it regarding the md5 salt and password..
  9. mint3d

    MySQL

    Saml1er, can I add you on skype or speak with you in private chat?
  10. mint3d

    MySQL

    I have a script, that someone gave of me of the basicRP gamemode, although it had been modified, he had gave me it to learn scripting and to develop it, I was confused when I checked his login screen, I realised a code which I had never encountered, could anyone tell me how this code works? local result, numrows, errmsg = dbPoll(queryCreds, 0) if result and numrows == 1 then result = result[1] local rPass = string.lower(md5(string.lower(md5(password)) .. result.salt))
  11. mint3d

    Hoot by car

    Edited it thanks!
  12. mint3d

    Hoot by car

    Try this it might work.. checkGateMarker = createMarker (1588.53125, -1637.988, 7.630457115173, "corona", 10.0, 0, 0, 255, 0 ) function createGate (thePlayer) gatePolice = createObject ( 3055, 1588.53125, -1637.988, 13.630457115173 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate ) function gateCheckingTeam ( thePlayer,seat ) local seat = getPedOccupiedVehicleSeat(thePlayer) if seat == 0 then moveObject ( gatePolice, 976, 1588.53125, -1637.988, 7.630457115173 ) end end addEventHandler ( "onMarkerHit", checkGateMarker, gateCheckingTeam ) function onLeave ( thePlayer ) setTimer ( movingBackPolice, 3000, 1, thePlayer ) end addEventHandler ( "onMarkerLeave", checkGateMarker, onLeave ) function movingBackPolice () moveObject ( gatePolice, 3000, 1588.53125, -1637.988, 13.630457115173 ) end function horn (player, commandName) bindKey ( player, "H", "down", gateCheckingTeam ) end addEventHandler ("onResourceStart", horn)
  13. @solidsnake14 Remove this code please it is leaked owlgaming scripts.
  14. if hasObjectPermissionTo(thePlayer, "user.guitarist5150", true) then --Specify who can enter the zone if getTeamName(thePlayer, "Psycho Mans Gang") then Replace that line with the one above and that will work if the team is on the scoreboard
  15. mint3d

    Web Browser

    function test (shader, texture) local myShader = dxCreateShader( "hello.fx" ) dxSetShaderValue( myShader, "texure0", webBrowser ) engineApplyShaderToWorldTexture( myShader, "drvin_screen" ) end addEventHandler("onClientResourceStart", getRootElement(), test) Would it be something like this ?
  16. mint3d

    Web Browser

    How do I make a texture into a shader, I am like really confused ?
  17. function msg(message, thePlayer) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() local nameAdmin = getPlayerName(thePlayer) dxDrawText("* [ Admin ] : #FFFFFF".. message .."", 22, 202, 180, 250, tocolor(150,0,0), 1.3, "default", "left", "top", false, false, true, true, false) dxDrawText(""..nameAdmin.."", 32, 225, 206, 250, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, true, false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("admin",true) addEventHandler("admin", getRootElement(), msg) bindKey("u", "down", "chatbox","AM") function clean (thePlayer) if string.find(message ,"Delete") then return removeEventHandler ( "onClientRender", getRootElement(), dx ) end end
  18. mint3d

    Web Browser

    I mean like this kinda,
  19. mint3d

    Web Browser

    How can I attach a web browser to a world object ? So I don't need a gui to control it I can simply control it from a world object and stuff. Hard to explain what I mean but like how can I make it simply just attach to a world object instead of gui ?
  20. https://community.multitheftauto.com/ind ... ls&id=4957 Check out this resource it does it with 4 different infernus' with a GUI
×
×
  • Create New...