-
Posts
1,134 -
Joined
-
Last visited
-
Days Won
37
Everything posted by NeXuS™
-
if (newValue == 26 or newValue == 75 or newValue == 80 or newValue == 86) then attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180); else attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0); end Replace line nr. 26 to nr 29. with this.
-
That one. And which backpacks are flipped?
-
Use setElementRotation on them. Can you copy the code again? And give me a list of those backpacks which are flipped.
-
NeXuS™ presents dxLib Introduction You want to work with dx functions, but you don't understand them? This is a script for you. You can create panels created by dx functions just like with GUI functions. Status IN DEVELOPMENT Sorry guys, its not finished yet, so I'm not publishing it. This is just a show off, that you'll get this in weeks. Whats done already Screenshots Syntax
-
Use [lua] tag, come on man.
-
Jees, can you describe your problem a bit better?...
-
I think you have to do a trick about it. Maybe setting his ammo to 0 and then after the delay setting it to 1, and saving his total ammo in a element data?
-
Need help with DX, positions, rotations and tables
NeXuS™ replied to Dzsozi (h03)'s topic in Scripting
You could trigger it back to the client side with a triggerClientEvent easily. -
@TheMOG, I think it's valhalla.
-
Do you have a token-system already?
-
Can you search for this in your code? setElementData(source, "carshop:cost", ...)
-
Whats above this? elseif (paymentMethod == "coin") then if itemID == 300 and costCar < 15000 then if isOverlayDisabled then outputChatBox("Token 15'000$ you dont have token with up to 15'000$!", client, 0, 255, 0) else exports.hud:sendBottomNotification(client, "Wrong token - 15'000$", "Token 15'000$ you dont have token with up to 15'000$!") end else takeItemFromSlot(client, 300) end
-
Can you use [lua] tags? This is horrible to look at... And also, copy a bit more, because I can't understand a thing from what you wrote.
-
Looping through the vehicles returns only the last vehicle created
NeXuS™ replied to Dzsozi (h03)'s topic in Scripting
Can ya repeat this in the hungarian section? Maybe I can understand your problem a bit better :D. -
Check how many vehicle the player has in the base HELP URGENT
NeXuS™ replied to Gabriel1375's topic in Scripting
I wont start a fight here, because this is a public-forum. But if he wanted to learn programming, he could do it already. You can easily learn programming by just looking at codes, and we can help the way we want. If I have time to just make a code for a guy who needs help, I'll do it. Thank ya @Anubhav. -
Check how many vehicle the player has in the base HELP URGENT
NeXuS™ replied to Gabriel1375's topic in Scripting
Its our job to help on this forum, try not to be a moderator if you are not one. Thank you @Gordon_G. -
Check how many vehicle the player has in the base HELP URGENT
NeXuS™ replied to Gabriel1375's topic in Scripting
function checkVehicles(theElement) if ( getElementData ( theElement , "Group" ) == GroupName ) and #getElementsWithinColShape(source, "vehicle") < 15 then sendMsg(theElement, "Welcome Player") elseif #getElementsWithinColShape(source, "vehicle") > 15 then setElementPosition(theElement, TeleportLocation[1], TeleportLocation[2], TeleportLocation[3]) end end addEventHandler("onColShapeHit", getRootElement(), checkVehicles) Here is the code if you would not understand it. -
@Ra1D1Um It's not worth fixing a script which is not even yours, I think so.
-
@Ra1D1Um Try to do scripts from scratches, and not just downloading. Try to understand a bit of the programming in this resource and then create a new resource as a clean start and make your OWN script with your own ideas in it. If you need ANY help about this, we are here to help you, and everyone else.
-
@Actimel As my signature shows, use that like button. Hope you have a good day.
-
Change clickedElement = i+1+drawFrom to clickedElement = i+drawFrom
-
Its a .lua file which is in the resource's folder. Did you write this script, or download it?
-
Line nr. 502 setObjectScale(elementBackpack[source], 0.95); Edit 0.95 to a bigger number. (eg. 2)
-
You'll have to do some calculations again. local sX, sY = guiGetScreenSize() _getCursorPosition = getCursorPosition function getCursorPosition() local cX, cY = _getCursorPosition() if cX and cY then return cX*sX, cY*sY end return -1, -1 end function inBox(x, y, w, h) local cX, cY = getCursorPosition() if cX > x and cX < x + w and cY > y and cY < y + h then return true end return false end function onClick(cButton, cState) if cButton == "left" and cState == "down" then for i = 0, 4 do if inBox(100, 100+i*15, 100, 15) then clickedElement = i+1+drawFrom end end end end Again, not tested, but should work. @Extinction