-
Posts
1,283 -
Joined
-
Last visited
Everything posted by manve1
-
I tried using unpack function for createObject and when i use the unpack function for marker it work, but it doesn't for createObject, so i need help to know how to make it: local lol = { { 2289, 2494.0295410156, -1674.1334228516, 12.335947036743 } } local s = createObject(unpack(lol))
-
post the script, u might miss-written something, or you are missing something
-
yes. there are scripts for the turn signals
-
Create near it a col shape, when he hits it, it gets his team and then moves if he is in it.
-
Didn't work. Still it doesn't update the GridList
-
Removed it, but still ain't working
-
no errors, but I done same thing for login on numbers, and it worked, just for some reason not on this
-
I have a problem of trying to make an achievement when player dies he unlocks it, but i just don't get how to make it work properly. Server-side: function achLog( ) local logged1 = getPlayerAccount(source) if (logged1) then setAccountData(logged1, 'achDamage', 2) end end addEventHandler('onPlayerLogout', getRootElement(), achLog) addEventHandler('onPlayerWasted', getRootElement(), function() local logged1 = getPlayerAccount(source) local logged = getAccountData(logged1, 'achDamage') if (logged == tonumber(0)) then triggerClientEvent('needDamage', getRootElement()) setAccountData(logged1, 'achDamage', 2) outputChatBox('#FF0000[Achievement]: #FFFFFF'.. getPlayerName( source ) ..' just unlocked "Death is here." achievement.', root, 255, 255, 255, true) elseif (logged == 2) then triggerClientEvent('logDamage', getRootElement()) end end ) Client-side: addEvent('needDamage', true) addEventHandler('needDamage', getRootElement(), function() local achDamage = guiCreateStaticImage( 0.4, 0.2, 0.6, 0.2, 'pictures/ach.png', true ) local labelDamage = guiCreateLabel( 0.4, 0.6, 0.6, 0.15, 'Death is here ( Die )', true, achDamage ) setTimer( function() if isElement(achDamage) and isElement(labelDamage) then destroyElement(achDamage) destroyElement(labelDamage) end end, 2000, 1 ) end ) addEvent('logDamage', true) addEventHandler('logDamage', getRootElement(), function() guiGridListSetItemText( gridAch, row2, column1, 'Death is here Unlocked', false, false ) end )
-
read the link ... cuz the script is not for sale or made. After all its taking ideas from other servers so i think it would be kind of illegal script.
-
no, no need it anymore, i used it in all of them, still the same thing, i try stuff before i ask help, but i leave it as it is
-
Well, never mind, I just leave it as it is, although i was trying to: Make a marker and check how far player is away from him, in meters and without a decimal (( original is like this EMAPLE: 345.247166245 ))
-
viewtopic.php?f=91&t=26541
-
Wouldn't setElementPosition do the same thing?
-
Make your script, post it here and we can help you fix it. We are here not to make them
-
Thanx, but I seen in one server having the distance between 2 points, and only in one piece, without decimal point, i just dont want the decimal point, That is what now i actually need
-
EDIT: Sorry I was wrong, it can be any name, just in side of it you need: --write something then you make a script and put the help inside of the script or another script meta.xml and folder
-
If i'm getting you correctly: Most probably you could make traffic limit, where they can go or where they can and you should make that if there is distance from the player and a moving car you could use getDistanceBetween3D (( or something like this ))
-
The mathematical way will take me ages to make, I use random markers for this. P.S. Hi NooP
-
What you mean? like help tabs? then u must name them as "Help.xml" or "Help.txt" plus make a script for it. and in the "Help.txt" or "Help.xml" u must add lines At the Top: At the Bottom:
-
Btw, i don't take the credit for this script, i only copied from one resource of mta community (( can't find the web link now )), but happy to hear that it works p.s. If it is defined, i don't care
-
just try the code i posted, and tell me if it worked
-
this is an example ((not sure if works)) : if ( not sound ) then local sound = playSound(music) end
-
In ur script its not defined, look at edit tho
-
how can i get rid of y axis on: local x, y, z = getElementPosition( pMarker ) local x2, y2, z2 = getElementPosition( localPlayer ) getDistanceBetweenPoints2D( math.ceil(x), y, math.ceil(x2), y2 ) ?
-
thats because real.minute is not defined try: function syncTime() local realTime = getRealTime() local hour = realTime.hour local minute = realTime.minute setMinuteDuration ( 60000 ) setTime( hour , minute ) end setTimer ( syncTime, 500, 1 ) setTimer ( syncTime, 3000000, 0 )
