I hope you can help me .. So I have now tried a command to the Factions scripts (client side) but there is always the fault call failed "string"?
Script:
function policeDuty(commandName)
if exports.factions:isPlayerInFactionType( getLocalPlayer(), 1) then
showCursor(true)
guiSetVisible(DutyWindow, true)
else
outputChatBox("Police Department fail!")
end
outputChatBox(tostring(exports.factions:isPlayerInFactionType( getLocalPlayer(), 1)))
end
addCommandHandler("pduty",policeDuty)
And The images are not displayed ..
Script:
Waffe1 = guiCreateButton(26,31,85,81,"Deagle",false,DutyWaffenWindow)
WaffeImg1 = guiCreateStaticImage(4,4,78,72,"images/DEAGLE.png",false,Waffe1)
EDIT:
meta.xml:
<script src="police/duty/duty_c.lua" type="client" />
<script src="police/duty/duty.lua" type="server" />
<file src="police/duty/images/280.png" />
<file src="police/duty/images/281.png" />
<file src="police/duty/images/282.png" />
<file src="police/duty/images/284.png" />
<file src="police/duty/images/DEAGLE.png" />
<file src="police/duty/images/MP5.png" />
<file src="police/duty/images/M4.png" />
<file src="police/duty/images/SNIPER.png" />