
SparkzZ
Members-
Posts
22 -
Joined
-
Last visited
Everything posted by SparkzZ
-
I have got this problem that whenever I create a dxRectangle and on top of it a dxText with the same sizes, Always the text has different width and height, I don't know why. the thing is I want to convert the rectangle width and height so it become the same as the text's width and height, is there a calculation for that ? http://imgur.com/a/ThWmn
-
Ah, thanks
-
I have a script that contains 2 client files, let's assume they are called scriptClient1.lua and scriptClient2.lua I created a function in scriptClient2.lua and want to use this function in scriptClient1.lua without exporting it in the meta.. is that possible ? and how ?
-
I guess I resolved it, I took the coordinate and tested it against water from all directions and to ensure there is no obstacles I added 500 to the z value. I am still testing it to make sure that it is 100% accurate, but as far it seems working well.
-
Wouldn't work, isElementInWater doesn't work with colshapes. As far as I tried it only works with players and peds.
-
That wouldn't work as there are many water sources and their area could be huge and distance between points won't be as accurate as I want it to be.. also I know there isn't a function that achieves that easily, am asking for a method or and idea that may accomplish what I need, actually I myself had idea of test lines against water from all directions but figured that won't work too because there may be obstacles in the ways of the lines.
-
I want to know if a specific coordinate is near water, I can't think of a method that can do that. Thanks in advance
-
yea.....it's already in DDC
-
https://community.multitheftauto.com/index.php?p= ... ils&id=621
-
k /debugscript 3 WARNING:Loading Script Failed:push/push.lua:9: ')' exepted near 'pushes' Script now addCommandHandler("push", function(p, c, t) local pushPlayer = findPlayer(t) if pushPlayer then local pushVehicle = getPedOccupiedVehicle(pushPlayer) if pushVehicle then local speedX, speedY, speedZ = getElementVelocity(pushVehicle) setElementVelocity(pushVehicle, 0, 0, 0+0.2) outputChatBox("getPlayerName(p).." pushes "..getPlayerName(pushPlayer).." up!", root, 255, 0, 0) end end end ) function findPlayer(name) local name = name:lower() for i, p in ipairs(getElementsByType("player")) do local fullname = getPlayerName(p):lower() if string.find(fullname:gsub("#%x%x%x%x%x%x", ""), name, 1, true) then return p end end return false end
-
now it's outputChatBox("getPlayerName(p).." pushes "..getPlayerName(pushPlayer).." up!", root, 255, 0, 0) after i did this script not working can u give me Script with colors coz i tryied but when i put "getPlayerName(p).." with colors didn't work if i removed " it works
-
Sorry i am new scripter outputChatBox(getPlayerName(p).." pushes "..getPlayerName(pushPlayer).." up!") how to set it with colors ?
-
/debugscript 3 ERROR:push/push.lua:16:attempt to index local 'name' (a nil value)
-
i did a Push Script But i dosn't work addCommandHandler("push", function(p, c, t) local pushPlayer = findPlayer(t) if pushPlayer then local pushVehicle = getPedOccupiedVehicle(pushPlayer) if pushVehicle then local speedX, speedY, speedZ = getElementVelocity(pushVehicle) setElementVelocity(pushVehicle, 0, 0.5, 0+0.2) outputChatBox(getPlayerName(p).." pushes "..getPlayerName(pushPlayer).." up!") end end end ) function findPlayer(name) local name = name:lower() for i, p in ipairs(getElementsByType("player")) do local fullname = getPlayerName(p):lower() if string.find(fullname:gsub("#%x%x%x%x%x%x", ""), name, 1, true) then return p end end return false end what's the probleme ?
-
Niiice Good job man~!
-
I am New On Scripting And I am Making an RPG Server and need 1 script if 1 enter marker shows Him MSG that he want Get this Job Or Cancel ! Job:Police Marker Place: X>1552.80383 Y>-1677.72778 Z>16.19531 Help