-
Posts
6,097 -
Joined
-
Last visited
-
Days Won
218
Everything posted by IIYAMA
-
@ Controlled What you did is correct. But if you want to split the types see example: if isElement( element ) then local elementType = getElementType(element) if elementType == "player" then outputChatBox("player") elseif elementType == "ped" then outputChatBox("ped") end end
-
how did you saved this element data?
-
I did, I gave him a way to do it. But I am not going to teach him old school math, that is something he has to learn from his teachers.... Well if you want go a head and learn it him, be the school teacher.
-
or wait for the release of my cheat panel which is included auto aim.
-
Example why you get this error: theError = {} .. "" attempt to concatenate a table value
-
Then your problem is somewhere else.
-
I am not blind, I can see who wrote the topic. function getVehicleCustomNameAndIDFromModel(model) if model then local carnameBuffered = carname[model] if carnameBuffered then local newvehnameid = math.random(1,#carnameBuffered) return {carnameBuffered[newvehnameid] or getVehicleNameFromModel(model) or "", newvehnameid == 0 and 1 or newvehnameid} else return {getVehicleNameFromModel(model) or "", 1} end else outputDebugString("ERROR: Invalid model") end end
-
You said the function didn't work.... so I showed you it does work. Never heard of runcode? https://wiki.multitheftauto.com/wiki/Resource:Runcode You can execute all kinds of code with it. (client/server) Example: /start runcode /srun player = getPlayerFromName("[HB]IIYAMA") /srun setElemenPosition(player,0,0,10) /srun setElementHealth(player,100) /srun setElementFrozen(player,true) /srun setElementFrozen(player,false) Je moet meer outputDebugString gebruiken om te zien wat er fout gaat. Ik kan eigenlijk het probleem van je in deze stukjes code niet vinden.
-
Function works: /srun getVehicleNameFromModel(470) Command results: Patriot [string] I recommend in case of wrong model: return {getVehicleNameFromModel(model) or "", 1}
-
FROM VERSION 1.3.1 r5212 ONWARDS bool setCameraTarget ( float targetX, float targetY, float targetZ ) Required Arguments targetX, targetY, targetZ: The target position that you want the local camera to look at. But it won't be the crosshair, it will be the middle of the screen. You should calculate that...
-
Getting isn't the problem, setting is it.
-
This is serverside, not clientside. So: exports.notifications:showBox(hitElement,"info","ZonaProtegida") As you can see in the script:(serverside) function showBox(player, value, str) if isElement(player) then triggerClientEvent(player, "CreateBox", getRootElement(), value, str) end end
-
There are no functions that make this possible yet very easily. The functions that are there do not work for the localPlayer, but only for remote players(other players except your self) and peds.
-
Line 22 and 43: if (isVehicleBlown( veh ) == false) then To: if veh and (isVehicleBlown( veh ) == false) then
-
It is a text quote, so yes of course without those " ".
-
Well your problem is that a player isn't always in a vehicle. Which means you are trying to get the position from a vehicle which doesn't exist. so before you get it's position do "if vehicle then".
-
Because the projectile is gone after it exploded, doesn't that make sense? Keep an eye on this event: https://wiki.multitheftauto.com/wiki/OnClientExplosion Also use local's for god sake.
-
You see the animation but you don't see the projectile. https://wiki.multitheftauto.com/wiki/CreateProjectile Try something like this or included the ped position. createProjectile (ped,18)
-
Peds can't create (synced) projectiles.
-
Your weakness is that you are sending your code to your clients. If you script most of your code serverside, nobody can touch your code.
-
I think your problem was the setElementHealth to 0, most of the time the problem. If that doesn't work setPedAnimation also to false/'empty'.
-
Answer for question 2. This bug is created by: setElementHealth to 0 setElementFrozen to true setElementCollisionsEnabled to false animation to forced without interruption -- and maybe more. Make sure the player is not frozen and collision is enabled, animation is stopped. Never set player health to zero, always use the killPed(serverside) function. I hope it helps you to solve this problem in the code.
-
@Max+ Servers are most of the time fine, clients are not. @John Smith Try this ugly, disgusting and laggy resource: https://community.multitheftauto.com/in ... ls&id=1600 and it may go a bit faster. I don't recommend it, but it is the only resource next to my syncro which does have faster headshots.
-
Makes you swim slower depending on the server fps. Fps limit supported: 30 t/m 60 There is maybe still a tiny difference in the speed, but it is better then nothing. This resource has been created to make everybody swim at the same speed. It is a kind of gta bug fix. Download here I don't care if you like it or not, just sharing... Related to this bug: https://bugs.multitheftauto.com/view.php?id=6125
