Shux

Members
  • Content Count

    516
  • Joined

  • Last visited

  • Days Won

    2

Shux last won the day on November 25 2019

Shux had the most liked content!

Community Reputation

13 Decent

3 Followers

About Shux

  • Rank
    Playa Partner
  • Birthday 02/02/1997

Details

  • Location
    Trinidad & Tobago
  • Occupation
    Scripter
  • Interests
    Scripting - Mapping - Helping

Recent Profile Visitors

827 profile views
  1. Shux

    Text on markers

    I believe this is what you're trying to do. marker = createMarker(-662.33703613281,2365.9025878906,178.9553527832, "cylinder", 1.5, 0, 100, 100, 200) function Texto() local x,y,z = getElementPosition(localPlayer) local distance = getDistanceBetweenPoints3D(-662.33703613281,2365.9025878906,178.9553527832,x,y,z) if distance < 20 then local sx,sy = getScreenFromWorldPosition(-662.33703613281,2365.9025878906,178.9553527832) if sx and sy then local coords = {sx,sy} if coords[1] and coords[2] then dxDrawText("CJ", coords[1], coords[2], coords[1], coords[2], tocolor(255,0,0,255), 10, "sans", "center", "center", false, false, false, false) end end end end addEventHandler("onClientRender", root, Texto)
  2. PM me with your contact information(preferably Discord) and we can discuss further.
  3. Shux

    help garage tunning

    When the map is starting you loop through all the players(or you can just use onClientMapStarting and check the localPlayer) , then check if the player is in the garage before killing.
  4. You're setting the target's amount of money to the player's (who's using the command) money + amount. You should set the target's money to the money that he has + amount. Therefore.. Add: local penz2 = getElementData(name,"char:money") or 0 And change: setElementData(name,"char:money",atg+penz) To setElementData(name,"char:money",atg+penz2)
  5. Update the element data of the object, updating the database alone won't change element data
  6. Well first off you're trying to set the team color to a team that doesn't exist yet - (update colors after making sure the team exists) Secondly I would suggest checking if colour.r, colour.g & colour.b are numbers before trying to set anything(to prevent errors) Try this: team = {} colour = {} colour.r = 255 colour.g = 85 colour.b = 85 local tagColor = rgbToHex(colour.r,colour.g,colour.b) or "#FFFFFF" function updateTeamSettings(playerSource,cmd,R,G,B) local playerName = getPlayerName(playerSource) local account = getPlayerAccount (playerSource) local account_name = getAccountName(account) if isObjectInACLGroup ( "user." .. account_name, aclGetGroup ( "Admin" )) then if not tonumber(R) or not tonumber(G) or not tonumber(B) then outputChatBox("Syntex /color R G B",playerSource,255,255,255,true) return end if R <= 50 and G <= 50 and B <= 50 then colour.r = 255 colour.g = 255 colour.b = 255 else colour.r = R colour.g = G colour.b = B end tagColor = rgbToHex(colour.r,colour.g,colour.b) or "#FFFFFF" triggerClientEvent(getRootElement(), "updateName", getRootElement(), homeName, homeTag, enemyName, enemyTag,colour.r,colour.g,colour.b) outputChatBox("Done Update",playerSource,255,255,255,true) local enemyTeam = getTeamFromName(enemyName) if enemyTeam then team[2] = enemyTeam updateTeamColour() else team[2] = createTeam ( enemyName, colour.r,colour.g,colour.b) if team[2] then updateTeamColour() end end end end addCommandHandler("color",updateTeamSettings) function updateTeamColour() setTeamColor ( team[2], colour.r, colour.g, colour.b ) end
  7. DM me with contact information (preferably discord) and we can discuss.
  8. local hashedPassword = getAccountData(account, 'hashed_password') if hashedPassword then Then you attempt to verify the password.
  9. 1- Wrong section, here next time: https://forum.mtasa.com/forum/127-programação-em-Lua/ 2- Change: if #result_car ~= 1 then To if #result_car >= 1 then
  10. I'd guess the account you're attempting to sign in with doesn't have the data key "hashed_password" set to it. So you need to check if the data is found before you attempt to verify the password.
  11. Shux

    Gta map to MTA

    You can convert using this:
  12. Feel free to PM me with contact information(preferably Discord) and we can discuss this.
  13. I don't get it. you have all the information you need right there for saving/receiving data to/from an account. what do you mean exactly? Provide more details
  14. -- Replace an MTA Object with your custom interior model using these engineLoadDFF engineReplaceModel engineLoadCOL engineReplaceCOL engineLoadTXD engineImportTXD -- Create the model using createObject -- Set the object to an interior using setElementInterior Where you warp depends on where you create it