
ThePCGuy
Members-
Posts
97 -
Joined
-
Last visited
Everything posted by ThePCGuy
-
When i want to remove floating objects with the world object remover i just cant select it, like stairs and such. And when placing road objects like carspaces you cant select them after you placed them. Is there a other way?
-
Thanks that worked, but after a couple of seconds the animation stops.
-
Is it possible to make the character able to walk with a animation? For example with the phone animation.
-
Isnt the server going to lag if it sets the object to the players dimension every frame?
-
Well i got a function that makes a object at the position of a player, but when changing dimension the object disappears ofcourse. But is there a way to make a automatic system that checks if the player changes from dimension the object does too?
-
Is this option ''cache'' in the meta.xml file safe? Cause after searching the forums for protecting your client sided files i came across ''fileDelete'' but then a user on the forum posted that it's still possible to get the scripts after quickly disconnecting after the files have been finished downloading.
-
Well, i tried it. But it gives a error attempt to index global 'result' (a number value) Could somebody give me a correct example for this function?
-
http://crystalmv.net84.net/pages/script ... attach.php
-
Could somebody explain how i use this function: getBonePositionAndRotation I need to use it to recieve the x, y, z, rx, ry, rz but i dont know how i can actually can recieve the returned value.
-
Well, i've made a little script where it attaches a object to the player, but when i activate the function only i can see the object and not other people in the server, is it cause the function is in client side? EDIT: I'm using bone_attach
-
Yo, Is er een ''experienced'' scripter hierzo die de vertaling op de wiki kan afmaken? Volgens mij zijn er maar 2 pagina's vertaald. Dat zou heel erg helpen in mijn leerproces EDIT: Niet alle functies enzo, alleen de script introductie.
-
Ok thanks, but in this function i posted it doesnt return any value, what is it doing now then? Just stopping the function if the source is different then localPlayer? EDIT: Oops, you already answered that.
-
Hi there, Could somebody explain what "return" actually does? And what it does here: function randomFunction(x,y,z,d) if ( source ~= localPlayer ) then return end if tonumber("".. littleCheck .."") > 1 then if d then if getElementDimension(getLocalPlayer()) == d then createExplosion(x, y, z - 10, 12, false, -1.0, false) end end end end addEvent("randomFunction",true) addEventHandler("randomFuction",getRootElement(),randomFunction)
-
Is it possible to move for example a airplane to one point to a other in a sort of animation?
-
Well, i'm somewhat closer to the problem. When i run the script it gives on error on every player. Here: ERROR: Client (Merry) triggered serverside event checkForDrunk, but event is not added serverside ERROR: Client (Chuckie) triggered serverside event checkForDrunk, but event is not added serverside So, someone have a clue what is going on here?
-
So, why does it say it's not added server side then?
-
Well, this is a function from the server side part: function checkDrunkLevel(charID) local result = mysql_query(handler, "SELECT * FROM `chars` WHERE `id` = '" .. (charID) .. "'") local row = mysql_fetch_assoc(result) charID = row["id"] drunkLevel = row["alcoholpercentage"] triggerClientEvent("theBlurShizzle", getRootElement(), drunkLevel) end addEvent( "checkForDrunk", true ) addEventHandler( "checkForDrunk", getRootElement(), checkDrunkLevel ) And this is a part from the client side: function triggerDrunkLevelCheck() playerID = getLocalPlayer() triggerServerEvent( "checkForDrunk", getLocalPlayer(), playerID ) end addEventHandler("onClientPreRender", root, triggerDrunkLevelCheck)
-
I've got another problem, i called a server function with triggerServerEvent, but debugscript gives me a error that the server sided event is not added, but it is. ERROR: Client (Merry) triggered serverside event checkForDrunk, but event is not added serverside
-
No i made a server sided function that activates the client sided function, but i want to call that server sided function with a timer that's not in the same lua file.
-
I've got another problem now, i want to call the explosion function with setTimer, but the function is located in the server sided script, and the setTimer in the client sided part. How can i call the function now?
-
Okay, but how can i locate the explosion beneath the ground, so ''you'' the player will get the shake but not see the explosion.
-
Ok, thanks. But the explosion that i will create will be visible for everyone right? Is it possible to make it invisible for everyone just that the player gets the screen shake alone?