Jump to content

Burak5312

Members
  • Posts

    361
  • Joined

  • Last visited

  • Days Won

    21

Burak5312 last won the day on August 16 2023

Burak5312 had the most liked content!

6 Followers

Recent Profile Visitors

4,003 profile views

Burak5312's Achievements

Mack

Mack (28/54)

160

Reputation

2

Community Answers

  1. marker = createMarker(2169.62500, -1983.23706, 13.55469, "cylinder", 1) vehicles = {} addEventHandler("onMarkerHit", marker, function(player) vehicles[player] = createVehicle(408, 2169.62500 + 3, -1983.23706, 13.55469) end) addEventHandler("onPlayerQuit", root, function(type) if (type == "Quit") then destroyElement(vehicles[source]) --change player to source end end)
  2. you can handle it with toggleControl or showChat toggleControl(player,"chatbox", false) --or showChat(player, false)
  3. local lamppostList = { [1126] = true --enter lamp post ids } setTimer( function() local pVeh = getPedOccupiedVehicle(localPlayer) -- Get the players vehicle for i,v in pairs(getElementsByType("object", root, true)) do if (isElement(v)) and (getElementType(v) == "object") and (lamppostList[getElementModel(v)]) then if(pVeh) then setElementCollidableWith(pVeh,v, false) setElementCollidableWith(v,pVeh, false) end end end end, 500, 0) can you try this
  4. triggerServerEvent("attemptLogin", resourceRoot, Data[1][1], hashedPass) local passVerified = passwordVerify(passHashFromDB, pass) you are comparing hash to hash this function asks for the password in plain text so don't encrypt it on client side --local hashedPass = passwordHash(Data[1][2], "bcrypt",{}) --this
  5. how can i convert pt unit to mta dx scale unit in photoshop?
  6. can you show more code setElementDimension(client, 0) setElementData(client, "player.isCharCreator", false) setElementData(client, "player.sex", charTable[4]) if charTable[4] then setPedWalkingStyle(client, 118) else setPedWalkingStyle(client, 129) end setElementData(client, "player.skin", charTable[7]) local skin = tonumber(charTable[7]) --setElementModel(player, skin) --no need this setElementData(client, "player.pame", charTable[8]) setElementData(client, "player.isCharCreator", false) spawnPlayer(client, 233.5927734375, -1278.25, 6.351, -100, skin, 0, 0) --use spawnPlayer skin parameter fadeCamera(client, true) setCameraTarget(client) by the way, you don't need to use setElementModel, spawnPlayer function has skin parameter for it
  7. setElementData(client, "player.isCharCreator", false)--working good setElementData(client, "player.sex", charTable[4])--working good if charTable[4] then setPedWalkingStyle(client, 118)--working too else setPedWalkingStyle(client, 129)--working too end setElementData(client, "player.skin", charTable[7]) print(charTable[7]) --show me what is charTable[7] local skin = tonumber(charTable[7]) setElementModel(client, skin)--didn't work Can you debug the CharTable[7] data
  8. try this for models https://mtaclub.eu/pcrypt
  9. addEventHandler("onClientVehicleEnter", root, function(player) local vehicleID = getElementModel(source) if(vehicleID == 425) then toggleControl("vehicle_fire", false) --rockets toggleControl("vehicle_secondary_fire", false) --hunter's minigun end end ) addEventHandler("onClientVehicleExit", root, function(player) local vehicleID = getElementModel(source) if(vehicleID == 425) then toggleControl("vehicle_fire", true) --rockets toggleControl("vehicle_secondary_fire", true) --hunter's minigun end end ) you can do it this way i didn't test it but
  10. Can you give us the error written in debugscript so that we can help you? or tell what is not working
  11. can you show the code and also show the error you got let's see what we can do
  12. I think the mysql_connect function may not work properly anymore because it belongs to the old mysql module, it is very old, now try using dbConnect
×
×
  • Create New...