Swagy
-
Posts
88 -
Joined
-
Last visited
Posts posted by Swagy
-
-
I'm trying to make the player able to move while using an animation, I don't know how because setPedAnimation freezes the ped automatically
-
It's a promising project that I myself been working on, definitely worth talking a look, join our discord and forums falks!
-
If you are using GUI then you can use this bit of code
guiSetInputMode("no_binds_when_editing")
-
Oh okay thanks buddy, appreciate your help
-
So basically, all I want to do is to Apply a vehicle mod to a certain vehicle.
For example I use:
local vehicle = createVehicel(id, x,y,z)
and then I want that vehicle mod to be replaced, but not all the vehicles with same Vehicle ID would be modded.
I don't want to use shaders, because I'm willing to change the DFF file so.
I don't really know how to express it but I hope you got what I meant
-
Actually, setPedStat wouldn't help, I'm trying to make custom properties for each player, but I think it's impossible.
-
Thanks a million @Zango
-
Oh right thanks alot Zango,
Is this what am I looking for tho ?
function getMatrixLeft(m) return m[1][1], m[1][2], m[1][3] end function getMatrixForward(m) return m[2][1], m[2][2], m[2][3] end function getMatrixUp(m) return m[3][1], m[3][2], m[3][3] end function getMatrixPosition(m) return m[4][1], m[4][2], m[4][3] end local mat = getElementMatrix(element) -- Get the matrix x,y,z = getMatrixLeft(mat) -- Get the matrix left direction x,y,z = getMatrixForward(mat) -- Get the matrix forward direction x,y,z = getMatrixUp(mat) -- Get the matrix up direction
-
So hello guys, I want to know which axis controls the movement in directions.
For example: I want to move an obejct forwards, how to check which axis to modify to move the object forwards ?
-
I want to use setWeaponProperty for specific player only not for the whole server.
Although, I was thinking of triggerClientEvent but setWeaponProperty client-side works only for client created weapons.
Any ideas?
-
So as the title says, I'm trying to make a gallery script and I'm trying to figure out a way to access Client's screenshots (MTA files from his computer) if there is anyway to do that please mention it
or if you have any alternative idea I'm glad to hear it
-
I have always wondered if it's possible to add a new vehicle id or object id to my server ?
-
You can make your own Friendlyfire code tho which is going to be client sided.
function friendlyFire (attacker) if (isElement(source)) and (isElement(attacker)) and (getElementType(attacker) == "player") and (getElementType(source) == "player") then local aTeam = getPlayerTeam(attacker) local sTeam = getPlayerTeam(source) if (aTeam == sTeam) then cancelEvent() end end end addEventHandler("onClientPlayerDamage", root, friendlyFire)
-
Anyone on this?
-
4 hours ago, Ayush Rathore said:
https://community.multitheftauto.com/index.php?p=resources&s=details&id=347
This resource might help you.
Actually this resource uses Slothbot, while I want to create my personal Ped Moving syste...
-
1 hour ago, stPatrick said:
You can move player with: https://wiki.multitheftauto.com/wiki/SetPedControlState
If that's what you mean.
It's kind of it, but I want to know what controls shall I use to reach "X" position and some stuff...
You gave me an idea on the function tho, thanks
-
you can try to introduce tables, this way:
for i=550,20000 do removeWorldModel(i,10000,0,0,0) end setOcclusionsEnabled(false) setWaterLevel(-5000) for k,objects in ipairs(garageObjects) do -- garageObjects table is already defined and with values local loadedObjects = {} local a,b,c,d,e,f,g,h,i = unpack(objects) local object = createObject ( a,b,c,d,e,f,g ) table.insert(loadedObjects, object) setObjectScale(object,h or 1) setElementDoubleSided(object, i or false ) setElementDimension(object,arenaCDimension) end if (#loadedObjects >= #garageObjects) then fadeCamera(true) loadedObjects = {} end
In this case, fadeCamera will be executed only when all the objects were created.
PS: setGarageOpen only opens the garage door.
-
Message me on the forum with more details.
-
I can try to work for you, message me with more details please.
-
Hey there, I was wondering if I can automate player's movement. In other words how to move a player to another position (without using setElementPosition). The player would walk till he reaches that position. ?
-
On 16/10/2018 at 10:06, Dzsozi (h03) said:
Yes, I also believe that.
Sorry, what do you mean by that? With the export functions you get the middle position of the defined vehicle's bed. So from that point on, you can adjust the position of the object by adding or extracting values to/from the position you got.
Really appreciate your help, thanks.
Keep up the good work mate, I loved this resource.
- 1
-
I really love what you did in here.
I believe that RP servers need such features, but I'm going to ask you if you're able to determine exact position for the object you're going to place in the car's bed ?
- 2
-
I didn't resize them in 3Ds max I just resized them on the TXD @HunT
-
@CodyJ(L) dude even with that program it's still the same.. no Texture, but this time, the TXD file is loaded.
[LF] Skilled scripter for specific & well described scripting work. [Paid] [RPG server] [Windows] [Server in development]
in Looking for staff
Posted
Hey there, could you accept me on discord, so we'd discuss stuff further?