-
Posts
395 -
Joined
-
Last visited
Everything posted by HUNGRY:3
-
getRootElement() is old and root is getRootElement() so your code won't work
-
Which gamemode you're using freeroam? If so edit the resource
-
You need some thing to refresh it or just use settimer
-
Yes but the event?
-
Full code?
-
Are you using Linux? If not then the host can only update it and you can't
-
function test ( source,killer ) local level = getPlayerWantedLevel ( killer ) if getTeamName(getPlayerTeam(killer)) == "Criminal" then if getTeamName(getPlayerTeam(source)) == "Criminal" then setPlayerWantedLevel ( killer, level) end end end addEventHandler ( "onPlayerWasted", getRootElement (), test )
-
Client lp = getLocalPlayer() function enterveh () if getElementData(lp,"sha") == true then txd = engineLoadTXD("infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) end end addEventHandler ( "onClientPlayerVehicleEnter", getRootElement(), enterveh ) Server function permission (player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then setElementData(player,"sha",true) end end addEventHandler("onPlayerVehicleEnter",root,permission) >~<
-
It's server side? Show meta
-
function permission (player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then end end addEvent("check",true) addEventHandler("check",root,permission) ლ(ಠ益ಠ)ლ damn
-
Client function enterveh () triggerServerEvent("check",localPlayer) txd = engineLoadTXD("infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) else outputChatBox("Only acl admin have shader", 0, 255, 0, false) end addEventHandler ( "onClientPlayerVehicleEnter", getRootElement(), enterveh ) Server function lol(thePlayer) if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Admin" ) ) then end end addEvent("check",true) addEventHandler("check",root,lol)
-
Your scripting skills 92% awesome local infernus = {[411]=true} addEventHandler ( "onVehicleStartEnter", root, function ( player, seat ) if ( seat == 0 ) then if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) then local theVehicle = source local vehModel = getElementModel(theVehicle) if (infernus[vehModel]) then return end else cancelEvent ( ) outputChatBox ( "You cannot enter this vehicle,Only Admin can.", player, 255, 0, 0 ) end end end)
-
function nope(thePlayer) if isPedInVehicle(thePlayer) then cancelEvent() end end addEventHandler("onPlayerPickupHit",root,nope) Server side
-
he fixed the problem any way thanks!
-
your server is cool but needs a cool name that makes people join
-
nope it doesn't save the text.
-
i have no idea what i'm doing... it's not working local posFile = xmlLoadFile ("req.xml") if not posFile then posFile = xmlCreateFile ("req.xml", "root") end local text local newNode function add() for id, playeritem in ipairs(getElementsByType("player")) do if source == REQ.button[1] then text = guiGetText(REQ.edit[1]) local row = guiGridListAddRow ( REQ.gridlist[1] ) local row2 = guiGridListAddRow ( REQ.gridlist[1] ) if string.len(text) > 0 then if posFile then newNode = xmlCreateChild(posFile, text) if xmlNodeSetValue (newNode, text) then xmlSaveFile(posFile) guiGridListSetItemText ( REQ.gridlist[1], row, 1, getPlayerName ( playeritem ), false, false ) guiGridListSetItemText ( REQ.gridlist[1], row, 2, text, false, false ) end end end end end end addEventHandler("onClientGUIClick",root,add) function save() for id, playeritem in ipairs(getElementsByType("player")) do local rowx = guiGridListAddRow ( REQ.gridlist[1] ) local row2x = guiGridListAddRow ( REQ.gridlist[1] ) guiGridListSetItemText ( REQ.gridlist[1], rowx, 1, getPlayerName ( playeritem ), false, false ) guiGridListSetItemText ( REQ.gridlist[1], row2x, 2, text, false, false ) end end addEventHandler("onClientResourceStart",root,save)
-
thank you.. but how to save the only 30 last msgs?
-
hello so i made a chat in the grid list... i want to save the chat like when i type hi and then i reconnect i find the "hi" in the grid :3 so how to do it?