
Shidony
Members-
Posts
29 -
Joined
-
Last visited
Everything posted by Shidony
-
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.
-
No i don't export any function, and with localPlayer it's the same
-
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")
-
[DayZ MTA:Sa] Recherche script [DayZ MTA:Sa]
Shidony replied to Furious^ONE!'s topic in French / Français
Vie illimité: onClientPlayerDamage cancelEvent Et pour le ADMIN EN SERVICE: dxDrawText -
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).
-
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.
-
Thanks, i'll try to do that
-
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.
-
That's what i wanted to do but what solution do you think is better, make another setElementVelocity or a moveObject ?
-
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 ?
-
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 ^^
-
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 .
-
https://wiki.multitheftauto.com/wiki/ACL A toi d'apprendre un peu
-
Bah le freeroam mets directement le mec dans la voiture, sinon vérifie tes permissions dans le acl.xml.
-
Oui j'ai bien compris mais par quel biais le mec crée-t-il sa voiture ? Est-ce qu'il tape une commande ou autre ?
-
Yes i know this function but i don't know how to calcul the angle with the coords i get.
-
Bah ça dépends de où tu veux le mettre toi, si tu veux faire une commande pour créer un véhicule ou, faire ça quand le joueur passe dans un checkpoint ou encore faire ça quand il spawn. Je te conseille de lire le wiki afin d'en apprendre un peu plus sur le fonctionnement du LUA avant de lancer dans une aventure car le lua est assez compliqué si on ne le connais pas .
-
On est pas sur samp ici . Pour ton problème, c'est simple, voici un exemple d'utilisation de warpPedIntoVehicle (Client-Side) function createVehicle() local x, y, z = getElementPosition(getLocalPlayer()) local veh = createVehicle(411 , x+2, y, z) warpPedIntoVehicle(getLocalPlayer(), veh, 0) end
-
See this image: http://upload.wikimedia.org/wikipedia/c ... stique.jpg I'm trying to search the ϴ angle. Imagine that the canon is a player.
-
Hi everyone, i'm trying to make a system just for fun but there's a thing i can't do. I downloaded this script (https://community.multitheftauto.com/index.php?p= ... ils&id=469) but i want to edit it to make the object go in the air with the player camera angle. I explain better, with this script, the object is throwed at the same z pos of the player, i want to throw the object in the air if i look in the sky or throw it on the ground if i look the ground but i don't know how to get the camera angle. Can you help me ? Thanks in advance, Cordialy.
-
Moi j'aurais fait comme ça: local timer1= setTimer(fadeCamera, 4000, 1, source, false, 1.0, 255, 0, 0) local timer2 = setTimer(fadeCamera, 5500, 1, source, true, 1.0) local timer3 = setTimer(setPlayerToSpawn, 5500, 1, source) addEventHandler("onPlayerQuit", root, function() killTimer(timer1) killTimer(timer2) killTimer(timer3) end)
-
Salut, Je ne sais pas de quel type de jeu est ton serveur mais si ce n'est pas un serveur qui nécéssite un système de login, aucune utilité d'en mettre un. Sinon, vérifie en mettant des ressources provenant du site de Multi Theft Auto, s'il ne faut pas les mettre dans le ACL étant donné qu'un système de login/register va aller modifier des fichiers. Cordialement.
-
Sorry for thread bumping but how do you put it in a server ?