-
Posts
1,102 -
Joined
Everything posted by Enargy,
-
that can not fire the weapon until the target is pointed right ?
-
it is dxDrawLine? try using triggerClientEvent
-
Explain better please.
-
In what sense. not being able to shoot it ?
-
It looks funny
-
function registerr( username, password ) if not ( username == "") and ( not password == "" ) then local accountAdded = addAccount(username,password) if(accountAdded) then outputChatBox("Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login",source) else outputChatBox("Error creating account, contact the server admin.",source) end else outputChatBox("Error creating account, correct syntax: /register ",source) end end addEvent( "register1", true ) addEventHandler( "register1", root, registerr ) EDIT: check if this code gives you the text needed; username = exports.dxEditBox:getText( "1" ) password = exports.dxEditBox:getText( "2" ) outputChatBox("name: "..username.. " | pass: "..password)
-
You're welcome.
-
You can do this by setElementData/getElementData. learn about scripting. https://wiki.multitheftauto.com/wiki/Main_Page
-
I see the problem, that is not a problem haha, what happens is you're looking for the player by clicking verify that the player has the gun in his hand. EDIT: try this if getPedWeapon(client, 4) == 32 or getPedWeapon(client, 4) == 28 then
-
so I see the code is server-side. not clientside
-
EDIT: Some error in debugscript? remember that if the function is executed by a command it is obvious you did not add the player in the function. function (client) -- Bla bla end
-
The code is correct
-
You can use this: setElementData createRadarArea createColRectangle onColShapeHit/onColShapeLeave -- Events I found a level system that might be good for you: https://community.multitheftauto.com/in ... ls&id=8663
-
EDIT: use: if getPedWeapon(client) == 32 or getPedWeapon(client) == 28 then instead of: if getPedWeapon(client) == 32 or 28 then
-
line #3 -- You forgot close parenthesis ')' if (weapon == 51 and getElementModel(source) == 601) then
-
addEventHandler("onClientPlayerDamage", root, function (_, weapon) if weapon == 37 then cancelEvent() end end )
-
What do you want to do with setCameraMatrix?
-
Nothing. This need add in acl.xml? You have to create a acl group called VIP obviously
-
You're naming the function like default function. change getMapName like.. idk "mapInfo"
-
Here: local weapons = { [1] = true,[22] = true,[31] = true,[42] = true,[15] = true, [2] = true,[23] = true,[32] = true,[43] = true,[16] = true, [3] = true,[24] = true,[33] = true,[44] = true,[17] = true, [4] = true,[25] = true,[34] = true,[45] = true,[18] = true, [5] = true,[26] = true,[37] = true,[46] = true, [6] = true,[27] = true,[38] = true,[10] = true, [7] = true,[28] = true,[39] = true,[11] = true, [8] = true,[29] = true,[40] = true,[12] = true, [9] = true,[30] = true,[41] = true,[14] = true, } function damage(attacker, weapon, loss, x, y, z, tyre) if weapon and not weapons[weapon] then if getElementModel(source) == 601 then cancelEvent() setElementHealth(source,getElementHealth(source) - 100) end end end addEventHandler("onClientVehicleDamage", root, damage)
-
TAPL means that we can not help people using scripts from others to their tastes. you need the permission of the author of the script.
-
5€ just for 30 lines? you are crazy, no offense.
