Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Shux last won the day on November 25 2019

Shux had the most liked content!

Community Reputation

13 Decent


About Shux

  • Rank
    Playa Partner
  • Birthday 02/02/1997


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

Recent Profile Visitors

1,043 profile views
  1. removePedFromVehicle setElementPosition
  2. 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", coord
  3. PM me with your contact information(preferably Discord) and we can discuss further.
  4. 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.
  5. 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)
  6. Update the element data of the object, updating the database alone won't change element data
  7. 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
  8. DM me with contact information (preferably discord) and we can discuss.
  9. local hashedPassword = getAccountData(account, 'hashed_password') if hashedPassword then Then you attempt to verify the password.
  10. 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
  11. 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.
  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
  • Create New...