Jump to content

Shidony

Members
  • Posts

    29
  • Joined

  • Last visited

Details

  • Gang
    Bay-City

Shidony's Achievements

Advanced Member

Advanced Member (8/54)

0

Reputation

  1. Sorry for thread bumping but i found that the problem is here: addEvent("onClientGetCharacterInfos", true ) addEventHandler("onClientGetCharacterInfos", root, function(characterID) local name = tostring(getElementData(peds[characterID], "Nom")) local argent = tonumber(getElementData(peds[characterID], "Argent")) setElementData(source, "nomPerso", name) setElementData(source, "argentPerso", argent) outputChatBox(name, source, 0, 255, 255, false) outputChatBox(argent, source, 0, 255, 255, false) end) The two outputChatBox send me the good values but when i use outputChatBox but here: triggerServerEvent("onClientGetCharacterInfos", thePlayer, actualPerso[thePlayer]) outputChatBox("2", 255, 255, 255, false) nomPerso = getElementData(thePlayer, "nomPerso") argentPerso = getElementData(thePlayer, "argentPerso") outputChatBox(nomPerso, 255, 255, 255, false) outputChatBox(argentPerso, 255, 255, 255, false) The two outputChatBox send me false.
  2. No i don't export any function, and with localPlayer it's the same
  3. textePerso is defined at the start of the script, the problem is there i think: triggerServerEvent("onClientGetCharacterInfos", source, 1) nomPerso = getElementData(source, "Personnage") argentPerso = getElementData(source, "argentPersonnage")
  4. Vie illimité: onClientPlayerDamage cancelEvent Et pour le ADMIN EN SERVICE: dxDrawText
  5. Il me semble que Valhalla c'est un peu le SARP de SA:MP, il a été volé puis redistribué et TOUT LE MONDE l'utilise ^^. (Mais je crois qu'au final il est légal de l'utiliser).
  6. Il faut les scripter, c'est à dire que tu dois implanter des peds, les mettre dans des véhicules et le plus compliqué c'est de les faire bouger car on ne peut pas record un mouvement et le faire faire aux peds.
  7. I allready use setElementVelocity to throw my object in the air, but not all objects get back to the ground, i tested it with a basket ball, it fall to the ground, but a computer doesn't.
  8. That's what i wanted to do but what solution do you think is better, make another setElementVelocity or a moveObject ?
  9. This is what i was thinking ^^. So now, i have done my system correctly but the objects hich doesn't have a mass, doesn't fall to the ground, i'm trying to make a virtual gravity but how ?
  10. C'est que tu n'as pas compris à quoi sert ce fichier, je t'invite à te renseigner sur le fonctionnement d'un serveur MTA avant de tenter quoi que ce soi parce que je peux te garantir que tu va vite être perdu et tu va t'arracher les cheveux si tu ne comprends pas le fonctionnement ^^
  11. I didn't saw you edited your post, i don't understand why you're using cx1, cy1 etc ... but i found this function: local function getCameraRotation() local px, py, pz, lx, ly, lz = getCameraMatrix() local rotz = 6.2831853071796 - math.atan2 ( ( lx - px ), ( ly - py ) ) % 6.2831853071796 local rotx = math.atan2 ( lz - pz, getDistanceBetweenPoints2D ( lx, ly, px, py ) ) --Convert to degrees rotx = math.deg(rotx) rotz = -math.deg(rotz) return rotx, 180, rotz end I teste it and it works but know, i need to find the velocity, i allready have the velocity for x and y but fox z a cannot find the calculation to make the object go into the air and then, fall to the ground with a gravity. EDIT: found the solution, i do not have to convert the rotx into degrees. thanks for your help .
  12. https://wiki.multitheftauto.com/wiki/ACL A toi d'apprendre un peu
  13. Bah le freeroam mets directement le mec dans la voiture, sinon vérifie tes permissions dans le acl.xml.
×
×
  • Create New...