-
Posts
282 -
Joined
-
Last visited
Everything posted by Gordon_G
-
It's an helping forum, so don't ask for a script right here.
-
@f8upd8 this is what I've understande until now : - The pickup disappear when I'm going to far from it. - The pickup appear-back when I change my interior to 0 for exemple and come back to interior 3 - The pickup appear-back when I restart the resource if I'm near from him @SuperCroz - I don't have this prob' when the pickup's interior is 0
-
@SuperCroz well, when I get out from the interior and come back to the pickup pos I can see the pickup back.
-
I don't hit the pickup, I juste move. same prob. I think it's that yes. But how can I improve the stream distance ?
-
No, by walking, I don't change my interior or dimension between pic 1 and pic 2. It can't be the problem 'cause in pic 1 I see correctly the pickup. I've already tried, same problem.
-
Hello. I've a big issue with pickup. So, my resource create some pickups in the interior 3 and dim 1. I can see them properly (pic 1) : Then, I go away, always in the same int and dim (pic 2) : And, when I come back in the first place (pic 3) : and I must restart de resource to see pickups back. It's really strange. I don't think it's my script's problem 'cause it works fine in the first case. However, this is my script for only one pickup : -- SERVER SIDE local x,y,z,int,dim = 355.87365722656, 151.42892456055, 1025.7890625, 3, 1 thePickup = createPickup( x, y, z, 3, 1242 ) setElementInterior( thePickup, int, x, y, z ) setElementDimension( thePickup, dim )
-
Of course it'll but there is no other way.
-
Attached colShapes don't work with this event. You'll need to make a loop with getElementsWhithinColShape().
-
So, if I understand correctly. When you are dead and you disconnect you want to be dead when you reconnect ? Use accountData or SQL.
-
we can't help you only with this code. If it's your code please send all the interested part. You can post in your native language forum too https://forum.multitheftauto.com/forum/105-french-français/ (I can respond you, I speak french).
-
@MIKI785 i did'nt know '#' could be used to get lenght of a given string, thank you !
-
function animation(source) setPedAnimation( source, "ped", "gas_cwr") setTimer(pararanim, 5000, 2, source) end addCommandHandler ("toxic", animacion) function stopanimation(tp) setPedAnimation(tp,false) setTimer(animacion, 10000, 1, tp) end
-
Paste your actually code.
-
It's because you can't handle the /check command, it's already an MTA command, see here : https://wiki.multitheftauto.com/wiki/Server_Commands
-
Hello. Here, function click ( button, state, sx, sy, x, y, z, elem, gui ) gui will always return false, because the event onClientGUIClick return only 4 values string button, string state, int absoluteX, int absoluteY Just remove the gui arg in the 'if' check.
-
the '#' only can be used to get the lenght of a table. To get the lenght of the edit you can use : string.len( guiGetText( The_Edit_Box ) )
-
@Diverti will MeD for gta:sa works for mta ? Can it give a .map file ?
-
I don't use element datas anymore because of the CPU usage and also for secure reasons. I use only one table and tree functions : datas_ = {} function setElementData_(element,data,value) if isElement(element) then if not datas_[element] then datas_[element] = {} end datas_[element][data] = value end end function getElementData_(element,data) if isElement(element) then if not datas_[element] or not datas_[element][data] then return false end return datas_[element][data] end end function dellAllElementData(element) datas_[element] = nil end
-
Then, juste trigger the function bindKey clientside from serverside when the player login onPlayerLogin triggerClientEvent
-
Duplicate weapon ? Huh, you want to say create new weapons ? If it is that, yes it's possible. It'll need some script however. Look at these functions, it could help you : https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#Weapon_functions good luck.
-
oh yes, I forgot, but intID is originally a string and not a number ^^ Thanks @pa3ck
-
You define interiors two times, once in the function, and once for the table. Replace the function by this : addCommandHandler("setin",function(player,cmd,intID) if interiors then local int,x,y,z = interiors[intID][1],interiors[intID][2],interiors[intID][3],interiors[intID][4] setElementInterior(player,int,x,y,z) else outputChatBox(syntax.." /"..cmd.." [InteriorID]",player,255,255,255,true) end end)
-
@LopSided_ yes, I've never tested like this me too. But it's not his problem as I see. @CodX have you added it client side ?